- Nodejs 18 above
- Docker + Docker Compose
- [Yarn]
npm i -g yarn
# 1. Clone this project
git clone https://github.com/jackgoh/awesome-nest-boilerplate {your project name}
# 2. Enter your newly-cloned folder.
cd your-project-name
# 3. Create Environment variables file.
cp .env.example .env
# 4. Install dependencies. (Make sure yarn is installed: https://yarnpkg.com/lang/en/docs/install)
yarn
# 5. Run DB
docker compose up
# 4. Run development server and open http://localhost:3000
yarn watch:dev
# 5. Read the documentation linked below for "Setup and development".
yarn migration:generate ./src/database/migrations/{your migration name}
#Example
yarn migration:generate ./src/database/migrations/add-post-table
To build the App, run
yarn build:prod
And you will see the generated file in dist
that ready to be served.
This project includes a docs
folder with more details on: