THE PROJECT SUMMARY:
Many pharmacies still use the credit system, and people who buy medicine and cannot afford it, make a part of the medicine payment and write the rest as debt, and these can be forgotten by the pharmacists, which is reflected in the pharmacy cash register as a negative balance and a deficit occurs in the cash register.
This system was developed as a solution to this problem, our aim is to keep people who came to the pharmacy and bought their medicine but could not pay their full amount in the system and to reduce the deficit in the pharmacy's safe.
The determining factor here will be the TR Identity Number.
NodeJs was used in the project, and MongoDb was preferred as the database.
- bcrypt
- connect-flash
- connect-mongo
- dotenv
- ejs
- express
- express-session
- http-status
- joi
- method-override
- mongoose
- multer
- qrcode
- rand-token
- nodemon
http://localhost:3000
npm start
http://eczane-otomasyon.herokuapp.com
Username: demo
Password: demo12345
administration.js
api.js
debt.js
medicine.js
pharmacy.js
apiController.js
authController.js
debtController.js
medicineController.js
pageController.js
apiMiddleware.js
authMiddleware.js
pendingMiddleware.js
redirectMiddleware.js
roleMiddleware.js
administrationRoute.js
apiRoute.js
debtRoute.js
medicineRoute.js
pageRoute.js
The Express module was used in the project, and the ejs module was used in the template engine. The project was written according to the MVC architecture. Validation processes in the system were provided with joi. The multer library was used to load the drug image. The qrcode library was used for QR operations. bcrypt is used for encryption operations. The mongoose library was used for registration to the MongoDB database as the database. A 32-character alphanumeric token was created for the Rest API, api security was provided by this token, and the rand-token library was used.
You can access the mobile design of the project via this link