Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

Awesome Lists containing this project

README

        


Nest Logo

[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.



NPM Version
Package License
NPM Downloads
CircleCI
Coverage
Discord
Backers on Open Collective
Sponsors on Open Collective

Support us


## 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 Appointment

It'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).