Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

331 Commits

Folders and files

Repository files navigation

Medicine Availability

The app is an easy way to search for the medicine you need in your next door pharmacy.

Website:

User Story

  • 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

Database schema

Untitled Diagram

How to Use our website !!

In terminal

  • 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
    

Team member

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages