Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/santiagodotsh/nest-pokedex

⚡ 🐈 CRUD with NestJS, MongoDB and Docker for quick setup.
https://github.com/santiagodotsh/nest-pokedex

docker mongodb nestjs pipes seed static

Last synced: 7 days ago
JSON representation

⚡ 🐈 CRUD with NestJS, MongoDB and Docker for quick setup.

Awesome Lists containing this project

README

        

## Project setup

```bash
$ npm install
```

## Config environment

```bash
$ # copy .env.template to .env
```

## Start database

```bash
$ docker compose up -d
```

## Compile and run the project

```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod
```

## Run SEED

```bash
$ http://localhost:3000/api/v2/seed
```

## Production build with Docker

1. Create `.env.prod` file.
2. Fill environment variables.
3. Execute commands.

```bash
# build
$ docker compose -f docker-compose.prod.yaml --env-file .env.prod up --build

# run
$ docker compose -f docker-compose.prod.yaml --env-file .env.prod up
```

## Run tests

```bash
# error
```