Skip to content

Latest commit

 

History

History
71 lines (50 loc) · 1.03 KB

README.md

File metadata and controls

71 lines (50 loc) · 1.03 KB

Multideploy

Description

This is an automatic boilerplate for a new NestJS application. Please edit this docs ...

Git clone and initial setup

# clone this repo
$ git clone https://github.com/xgeekshq/multideploy.git

# cd into it
$ cd multideploy

# create .env file
echo "NODE_ENV=example" >> .env

# run 
$ 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

Test with curl

# GET /todos
curl -sf -X GET \
  -H "Accept: application/json" \
  https://multideploy-dev.xgeeks.tech/todos/

# POST /todos
curl -sf -X POST \
  -d '{"name":"my-first-todo","description":"buy milk"}' \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  https://multideploy-dev.xgeeks.tech/todos/

Links