Skip to content
/ booking Public

Booking service on Nest.js and MongoDB(Booking, Notification)

Notifications You must be signed in to change notification settings

ndmen/booking

Repository files navigation

Nest Logo

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

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

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

Stay in touch

License

Nest is MIT licensed.

About

Booking service on Nest.js and MongoDB(Booking, Notification)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published