Made with Sequelize ORM and Express.
It has many different UI as different projects.
This is the base project for the API server.
A General Store/Inventory API is added for buying and selling product.
No UI is implemented yet (Inverntory).
Implemented two modules for my own learning. One is to allow CORS to domains. The other one is to log the messages to console.
- checking from the UI
- basic API for all
- CRUD is done for most
- Test done from UI Application
- General Error Handling
- Groups are made to separate different Organisations
- DoctorGroups help separate different Doctors to different organisations
-
/initDB
- This is not an API, but a setup step)
- This setsup the Database and Tables
- Must be visited from the server as the first thing before moving on with the API
-
Person : /getPersonWithId/:id
-
Doctor : /getDoctorWithId/:id
-
Group : /getGroupWithId/:id
-
DoctorGroup(Clinic) : /getDoctorGroupWithId/:id
-
Schedules By Doctor Id : /getSchedulesByDoctorId/:id
-
Schedules By Patient Id : /getSchedulesByPatientId/:id
-
Schedules By Clinic Id : /getScheduleByDoctorGroupId/:id
-
Schedules By Person Id : /getScheduleByPersonId/:id
-
Prescription By Patient Id : /getPrescriptionsByPatientId/:id
Generated the application with express-generator
and npx
not npm
.
npx express-generator --view=pug myNewApp
Installing the requirements.
npm install --save mysql2
npm install --save sequelize
TypeORM looks interesting too.
The old projects are here
- Node, MySQL NodeOrmApi_101
- Node, MySQL NodeOrmApi_102
These are projects where I am trying to connect to SQL database. There are other projects connecting to NoSQL database.
- Node and MongoDB NodeOrmApi_103