Skip to content

anton-paskanny/nodejs-aws-cart-api

 
 

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.

NPM Version Package License NPM Downloads Travis Linux Coverage Gitter Backers on Open Collective Sponsors on Open Collective

Description

Nest framework TypeScript starter repository.

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

Docker section

Command to build the image:

docker build -t antonp-cart-app .

Command to run the container:

docker run -d --rm -p 4000:4000 --name antonp-cart-app-running --env-file .env antonp-cart-app

.dockerignore configuration:

Files excluded from the Docker image:

  • dist - the dist folder is generated in the #step 1, so no need to copy it inside the image.
  • sql - these scripts are used only manually to fill the db from the task 8.
  • cdk - this folder contains the code to set a correct infrustrtucte, not need to keep it inside the image since we only need to pack NestJS app.
  • Dockerfile - this file is used to build the image, we don't need to keep there.
  • node_modules - the dependencies are generated in the #step 1, no need to copy them.
  • rest files specified in the .dockerignore - those files are eslint and prettier configs (only used in dev, not prod), .git and gitignore files and so on. See the .dockerignore file for more explanation.

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

CartApi for NodeJS in AWS course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 91.5%
  • JavaScript 7.9%
  • Dockerfile 0.6%