Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 669 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 669 Bytes

Description

A NestJS boilerplate with authentication and TypeORM.

Setup

Create a .env (for running the app outside of docker- development) and .env.prod (for running the app inside docker- production) file from the .env.example and .env.prod.example respectively, and assign the variables their corresponding values.

Development

$ # start up the db
$ yarn docker:db
$ # install dependencies
$ yarn
$ # run the migrations
$ yarn migration:up
$ # optionally seed the database
$ yarn seed:config
$ yarn seed:run
$ # start the app in watch mpde
$ yarn start:dev

Production

$ yarn docker:compose
$ yarn docker:migration:up