The app is an easy way to search for the medicine you need in your next door pharmacy.
Website:
- As a user (customer), i want to be able to search for a medicine
- As a user (customer), I want to be able to see the medicine info and the price in different pharmacies that have this medicine
- As a user (customer), I want to be able to click on a pharmacy and see the info
- As a user (pharmacist), i should be able to login
- As a user (pharmacist), I should be able to edit medicine info and the price
- As a user (pharmacist), I should be able to add a new medicine
- As a user (pharmacist), i want to be able to logout
- Clone these repo:
git clone https://github.com/someyaaltous/MedicineAvailability.git
cd MedicineAvailability
-
Install node modules:
npm i cd client npm i cd .. -
Create database locally
-
Create config.env file in root and put these variables in it:
DATABASE_URL = postgress://{username}:{password}@localhost:5432/{databasename}
SECRET = {secret}
- build database table :
node ./server/database/db_bulid.js
- if you want initial values for database
psql
\c {databasename}
\i ./server/database/init_values.sql
-
Run this to start the website:
npm run dev
