A progressive Node.js framework for building efficient and scalable server-side applications.
It's a Booking service on Nest.js and MongoDB. You can:
- Create a User
- Create a Doctor
- Create an Appointment
- Accept an Appointment
- Decline an Appointment
It's works:
- Create User and Doctor
- Create Appointment with id User and Doctor(If Doctor have 3 acceped Appointments, return 'Doctor not free')
- Accept an Appointment as a Doctor(If date Appointments < now date, return 'Appointment not valid'. If all OK - created Notification Cron Job: -2h and -24h)
- Chek file notification.log with messages
- Decline an Appointment as a Doctor(Appointment will deleted from database Appointments)
You can import file https://github.com/ndmen/booking/blob/main/Booking.postman_collection.json in your Postman. Or using Swagger http://localhost:3000/api/#/
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.