Skip to content

antonygiomarxdev/tesla-shop-api

 
 

Repository files navigation

Nest Logo

Description

Nest project.

Initial Setup

  1. Install dependencies
$ npm install
  1. Wake up the database
$ docker-compose up -d
  1. Run server
# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod
  1. Create User
# create user

$ curl -X POST \
  http://localhost:3000/api/auth/signup \
  -H 'Content-Type: application/json' \
  -d '{
    "email": ""
    "password": ""
}'
  1. Run Seed with token
$ curl http://localhost:3000/api/seed
      -H "Authorization: Bearer <token>"

Docker

  1. Build the image
$ docker compose up -d
  1. Run the container
$ docker run -p 3000:3000 nestjs-starter

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 98.1%
  • Dockerfile 1.1%
  • JavaScript 0.8%