Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ndmen/booking
Booking service on Nest.js and MongoDB(Booking, Notification)
https://github.com/ndmen/booking
booking cron fs jest mongodb nestjs swagger
Last synced: about 24 hours ago
JSON representation
Booking service on Nest.js and MongoDB(Booking, Notification)
- Host: GitHub
- URL: https://github.com/ndmen/booking
- Owner: ndmen
- Created: 2022-07-15T22:35:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-22T08:37:15.000Z (over 2 years ago)
- Last Synced: 2023-03-06T03:37:12.794Z (almost 2 years ago)
- Topics: booking, cron, fs, jest, mongodb, nestjs, swagger
- Language: TypeScript
- Homepage:
- Size: 574 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest
A progressive Node.js framework for building efficient and scalable server-side applications.
## Description
It's a Booking service on Nest.js and MongoDB. You can:
1. Create a User
2. Create a Doctor
3. Create an Appointment
4. Accept an Appointment
5. Decline an AppointmentIt's works:
1. Create User and Doctor
2. Create Appointment with id User and Doctor(If Doctor have 3 acceped Appointments, return 'Doctor not free')
3. 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)
4. Chek file notification.log with messages
5. 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/#/
## Installation
```bash
$ npm install
```## Running the app
```bash
# development
$ npm run start# watch mode
$ npm run start:dev# production mode
$ npm run start:prod
```## Test
```bash
# unit tests
$ npm run test# e2e tests
$ npm run test:e2e# test coverage
$ npm run test:cov
```## Support
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](https://docs.nestjs.com/support).
## Stay in touch
- Author - [Kamil Myśliwiec](https://kamilmysliwiec.com)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)## License
Nest is [MIT licensed](LICENSE).