Table of Contents
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.
- 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.
-
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
andnpm i
to install the packages for the client side React Js.
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 commandnpm run buildSeeds
to add fake Data.
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