GithubHelp home page GithubHelp logo

sanludhi / pharmacy_management_system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rajat-29/pharmacy_management_system

0.0 0.0 0.0 1.25 MB

Website which is used to manage the pharmacy shop with billing facility and manage stocks !!

JavaScript 88.62% CSS 3.22% HTML 8.16%

pharmacy_management_system's Introduction

Pharmacy_Management_System

Website which is used to manage the pharmacy shop with billing facility and manage stocks !!

How To Run?

To run this website run this command on command prompt on root folder.

npm start or node app.js

It will run under the url http://127.0.0.1:3000/

Login Details

Email and Password for Website:

Admin :
Email :[email protected]
Password: admincq

Vendor :
Email :[email protected]
Password: admincq

Shopkeeper:
Email : [email protected]
Password: admincq

Features

  • Dynamic Data by mongoose database
  • Different View For Shopkeeper, Admin and Vendor
  • Manage Billings
  • Manage Stocks
  • Responsive Layout
  • Mobile Friendly
  • Open Source

How to Use ?

  1. Use mongorestore command to add database to your Local Machine.
  2. Run Mongo Server
  3. Run Server File app.js
  4. Run local host on port number 8000

Pre-requisites

  • Node JS (Tested on v12.14.0)
  • Mongoose
  • Pre-requisites or Dependencies(Below)

Dependencies :

  • Mongoose
  • Express
  • Express-Session
  • PATH
  • EJS
  • Bcrypt
  • HTTP
  • Express
npm install express
  • EJS
npm install ejs
  • Express-Session
npm install express-session
  • Mongoose
npm install mongoose
  • Dotenv
npm install dotenv
  • Bcrpty
npm install bcrpty  / npm i bcrpty

Schema

User Schema

Name Type Required Unique Encrpyted
Name String Yes No No
Email String Yes Yes No
Password String Yes No Yes
DOB String Yes No No
Role String Yes No No
billDetails ObjectId No No No
userdetails ObjectId No No No

Stock Schema

Name Type
User ObjectId
MedicineType ObjectId
NoofStock Number
Price Number
isActive Boolean

ShopItem Schema

Name Type
User ObjectId
MedicineType ObjectId
NoofStock Number
Price Number
boughtFrom Boolean

PlacedOrder Schema

Name Type
CustomerName String
DoctorName String
Contact String
Address String
Items Array

Medicine Schema

Name Type
Name String

PlacedOrder Schema

Name Type
CustomerName String
DoctorName String
Contact String
Items Array
Total Number

Directory

|___ Root
|   |--- app.js
|   |
|   |--- Controller
|   |    |--- billing.js
|   |    |--- index.js
|   |    |--- medicine.js
|   |    |--- shopitem.js
|   |    |--- stock-shopitem.js
|   |    |--- user.js
|   |    |--- user-details.js
|   |
|   |
|   |--- Middlewares
|   |    |--- middleware.js
|   |
|   |--- Models
|   |    |--- billingSchema.js
|   |    |--- medSchema.js
|   |    |--- placedOrderSchema.js
|   |    |--- shopSchema.js
|   |    |--- stockSchema.js
|   |    |--- userDetailsSchema.js
|   |    |--- UserSchema.js
|   |
|   |--- Public
|   |    |--- css (Static)
|   |    |--- images (Static)
|   |    |--- script (Static)
|   |
|   |--- Routes
|   |    |--- Handlers
|   |    |    |--- admin.js
|   |    |    |--- shopkeeper.js
|   |    |    |--- user.js
|   |    |    |--- login.js
|   |    |--- index.js
|   |
|   |--- viwes
|   |    |--- partials
|   |    |    |--- sidebar.ejs
|   |    |--- addMedicine.ejs
|   |    |--- addStock.ejs
|   |    |--- billingLogs.ejs
|   |    |--- buystock.ejs
|   |    |--- changepassword.ejs
|   |    |--- dashboard.ejs
|   |    |--- login.ejs
|   |    |--- manageMedicines.ejs
|   |    |--- orderMedicines.ejs
|   |    |--- profile.ejs
|   |    |--- recentOrders.ejs
|   |    |--- shopkeeperstable.ejs
|   |    |--- stockdetails.ejs
|   |    |--- vendorstable.ejs
|   |    |--- vendorstock.ejs

pharmacy_management_system's People

Contributors

rajat-29 avatar rishabh-1999 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.