Giter Club home page Giter Club logo

room-booking-system's Introduction

Description

In order to run the app we need to execute a few commands

Installation

$ npm install

Create .env file

Copy content of the .env.example to newly created file .env, so run

$ npm run env:config:copy

Docker container and required services

$ npm run app:env:init

That's it! Now we can run the server and start testing the API!

$ npm run start:dev

Postman collection

To speed up the development process you can use prepared collection of end-points in Develop.postman_collection.json

Swagger documentation page

The swagger documentation page is hosted on the same host as server itself by adding the url /api, i.e. if in configuration APP_PORT -> 9001 then the swagger page will have an address like Swagger Page

Database

The database schema looks like the folowing:

schema

Migrations

Migrations for the application is placed here -> ./src/database/migrations

There are a few commands that could help in managing them:

  • Run migration -> npm run migration:run
  • Revert just executed migration npm run migration:revert

Seeders

In order to start using the system, it's required to add some data into the database.

  • Create 5 dummy hotels with rooms -> npm run seed:create-dummy-hotels
  • Create 5 dummy users -> npm run seed:create-dummy-users

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

License

Nest is MIT licensed.

room-booking-system's People

Contributors

sergey-donchenko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.