A progressive Node.js framework for building efficient and scalable server-side applications.
This is a Nest backend application. You can find the frontend here. This application handles calls to the omdb api, stores user information, and tracks movie and favorites information.
$ npm installCopy the .env.example file and name it .env. Next, add an missing values in .env. The run one of the following scripts before.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prodFirst, make sure you have docker installed.
- Clone the repository to your local
- Copy the
.env.exampleto.envand configure the environment variables - Run the following command from your application root directory
docker-compose build
docker-compose up
or (run as deamon)
docker-compose up -d
If you need to rebuild the container:
docker-compose up --build
To stop all containers:
docker-compose stop
To stop a specific container:
docker-compose stop <container name>
e.g. docker-compose stop app
To start a specific container:
docker-compose up <container name>
e.g. docker-compose up app
This application uses swagger to map out the endpoints of the application. To see the documentation, run the application, and visit localhost:4000/swagger in your browser.
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:covNest 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.
Nest is MIT licensed.