Skip to content

CA-G12/PMS

Repository files navigation


Logo

Pharmacies Managment System ::

Live link .. Figma



Table of Contents
  1. About The Project
  2. Team Members
  3. Built With
  4. Getting Started
  5. Figma Design
  6. Database Schema

Description:

The creation of a full pharmacy management system in the Gaza Strip will be a part of the digital transition with what is happening around us, as we are aware of and watch the world becoming entirely digital.

There will be three primary users for this system

  • The health ministry will end up serving as the system's administrator and have daily access to all pharmacies that have registered for the system, their information, the items they stock, their requests, and their sales history.
  • The second primary user is the pharmacy owner, who will have a profile that allows him to view daily sales history, his own information in addition to the products in his pharmacy, and requests from the ministry of health.
  • Finally, a default user will be browsing a landing page alongside the pharmacies and products pages. This user will be able to see each pharmacy profile's information as well as each product's pop-up window, which has all the information that is necessary to know about the product.

Figma Design Link

Database Schema

drawSQL-export-2022-11-11_16_56

Getting Started

📌 How to launch app locally :-

  • clone this repo by typing this command in your terminal:
    git clone https://github.com/CA-G12/MoH.git

  • Run npm i to install packages for the app as general.

  • Run cd client and npm i to install the packages for the client side React Js.

Database Setup 📋

make sure you have installed PostgreSQL and pgcli

CREATE DATABASE {database name};
CREATE USER {user name} WITH superuser password {password}
ALTER DATABASE {database name} OWNER TO {user name};
  • Test DB:
  • Do the same as before but make sure to change the names because this database is for testing.
  • Run the following command in the database pgcli terminal
    npm run buildDB to build database with its tables and the command npm run buildSeeds to add fake Data.

Environment variables:

Environment variables are one of the ways we keep our product secure. If you want to access our app locally you will need to add your own.

  • create .env file at the root of your project
  • add your Environment variables
DEV_DB_URL= # Your development PostgreSQL connect
DATABASE_URL= # Your production PostgreSQL connect
SECRET_KEY= # Your token Secret key

Technologies

Our Amazing Leader

Raghad Mezied

Team Members