- User can creater account (who will be admin for their scope) to manage their appointments
- Other user can create appointment for a specific user
- Admin can approve/disapprove the appointment
- Run
yarn
to install packages - Create a
.env
file and copy all from.sample.env
- Create a database in MongoDB mongodb.com/atlas/database
- Copy the MONGO_URI and put in
.env
- Run
yarn dev
to start the server - This repo has a postman collection, so take a look to all APIs
- First have to register (A user could be a admin or general)
- Second user have to login to have the JWT token
- Admin user have to create appointment places
- After, admin user have to create weekly slots for appointments
- Other registered user can use the appointment create API to create a appointment with a admin user
- Admin user can approve/disapprove any of their own appointment
- Admin user can have a look of all appointments for current day