This is a digital prescription system in which doctor can prescribe medicines digitally. Each prescription will have an unique prescription Id, pharmasist uses this Id to view the prescription.
Doctors and Pharmasists can register through 'Register' option. Freshly registered accounts will be activated only after the approval of administrator. Doctors can prescribe medicines by logging into their account. Pharmasists can view prescriptions by entering into their accounts. Administrator have the privilege to verify, view and remove Doctors and Pharmasists.
-
Log in to mongoDb account
-
Add Admin Details
Click on Collection
Click onAdd My Own Data
Create Database
Click on Insert Document
InsertAdmin
details
{ "_id": { "$oid": "5ee885d95de65397132b9ae2" }, "first_name": "Administrator", "last_name": "Administrator", "email": "[email protected]", "password": "$2b$10$RpQUe1.GoaBuu8zsRrmbhuIfwJ0pb8A.UDk7ctPn/t061cY.lRhOG", "role": "admin", "acc_status": "true" }
-
Allow Network Access by whitelisting IP
You can either whitelistCurrent IP
orAll IP
-
Connecting to application
Selectconnect
Create DB User
Choose connection method asConnect Your Application
Copy the URI
Create a.env
file inbackend
folder and set the content asATLAS_URI=
. Change thedbName
andpassword
with your's.>
-
Clone repository using
git clone https://github/printfjoby/Pharmacon
-
To install depndencies, run
npm install
in the root(/) directory and also in backend directory -
Start Backend server in port:5000, run
npm start
in backend directory -
Start Frontend server in port:3000, run
npm start
in root directory -
The Application will start running in
localhost:3000
-
Open the application and create a Doctor and Pharmasist account using
Register
option. -
Login as administrator using email
[email protected]
and passwordadmin123
. -
Click on
Approve
and approve the doctor and pharmasist. -
Login as
Doctor
using the account you created. -
Using
Prescribe
option prescribe medicine and copy thePrescription Id
from the response message. -
Login as
Pharmasist
-
In
View Prescription
option paste the 'Prescription ID` and view the prescription.
-