# NestJS Starter

## Requirement
1. Node.js 16.15.0
2. Git
3. PostgreSQL

## Installation

1. Clone this project
```bash
$ git clone git@git.seni.cloud:nodejs/nestjs-starter.git
$ cd nestjs-starter
$ npm install
```

2. Create Environment (Update Database dan Email Environment)
```bash
$ cd nestjs-starter
$ cp .env.example .env
```

3. Create Database
```bash
$ npm run db:create
```

4. Migrate Database
```bash
$ npm run db:migrate
$ npm run db:seed
```

## How To Start Develop

1. Run Application
```bash
$ npm run start:dev
```

## How To Start Production

1. Run Application
```bash
$ npm run start:prod
```

## API Documentation
Open the API documentation from browser: [http://localhost:3000/api-documentation](http://localhost:3000/api-documentation)
