/PharmTech

A full-stack pharmaceutical web application that allows pharmacists, doctors, and drug manufactures to update inventory, send patient prescriptions, request inventory and more!

Primary LanguageJavaScript

PharmTech

Table of Contents

About

What is PharmTech?

  • PharmTech is a full-stack pharmaceutical web application that allows pharmacists, doctors, and drug manufactures to update inventory, send patient prescriptions, request inventory and more!

Prerequisites

  • Docker v19.03.13 or higher
  • Docker-compose v1.27.4 or higher
  • Node.js v16.15.1 or higher
  • npm v6.14.9 or higher
  • yarn v1.22.5 or higher

Installation

Option 0: For a quick-start - Deploying local database + API to docker containers (local)

  1. Build docker image: $ ./First_Run.sh
  2. Start docker container $ ./Start_PharmTech

Option 1: Deploying local database + API to docker containers (local)

  1. Deploy Frontend & Backend (Using Docker) ➡ $ docker compose up
  • or Backend ONLY ➡ $ cd PharmTech/backend; yarn run dev
  • or Frontend ONLY ➡ $ cd PharmTech/frontend; yarn start

Option 2: Deploying RDS cloud database + API to docker containers (EC2 Linux Instance)

  1. AWS Management Console
  2. Create RDS MySQL Database
  3. Create EC2 Linux Instance
  4. Install the following within EC2 Linux Instance:
  1. Within the PharmTech/backend folder, create .env file & enter cloud database credentials :

MYSQL_DB=
MYSQL_PORT=
MYSQL_CLOUD_USER=
MYSQL_CLOUD_PASS=
MYSQL_CLOUD_HOST=

  1. Deploy Frontend & Backend (Using Docker) ➡ $ docker compose up
  • or Backend ONLY ➡ $ cd PharmTech/backend; yarn run dev
  • or Frontend ONLY ➡ $ cd PharmTech/frontend; yarn start

Additional configuration