Skip to content

web3snack/up-road-backend

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

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

Running the app and db with Docker Compose (Ref)

Frontend Project를 Submodule로 가져오기

git submodule init
git submodule update

Start

docker-compose up -d

and then, open http://localhost:3000

Shutdown and Clean-up

docker-compose down --volumes

Running the app and db with Docker (Ref)

docker network create uproad-backend
docker run -d \
  --name uproad-db
  --network uproad-backend \
  --network-alias mysql \
  -e MYSQL_ROOT_PASSWORD=uproad88 \
  -e MYSQL_DATABASE=uproad \
  mysql:5.7
docker exec -it uproad-db mysql -p
docker run -dp 3000:3000 \
  -w /app -v ${PWD}:/app \
  --network uproad-backend \
  -e DATABASE_HOST=mysql \
  -e DATABASE_PORT=3306 \
  -e DATABASE_USERNAME=root \
  -e DATABASE_PASSWORD=uproad88 \
  -e DATABASE_NAME=uproad \
  node:16-alpine \
  sh -c "npm install && npm run start"

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published