- Docker 4+
- Node.js 20
- PostgreSQL 12+
- Nest 10
- NODE_ENV: node environment
- PORT: Defaults to 3000
- POSTGRES_HOST: Postgres host
- POSTGRES_USER: Postgres user
- POSTGRES_PASSWORD: Postgres password
- POSTGRES_DB: Postgres DB name
- POSTGRES_PORT: Postgres DB port
- CONTENTFUL_SPACE_ID
- CONTENTFUL_ACCESS_TOKEN
- CONTENTFUL_ENVIRONMENT
- CONTENTFUL_CONTENT_TYPE
- Build containers
$ docker compose up --build - Go to the container terminal and run the migrations
$ npm run migration:run - Check if API is up visiting the health check
GET http://localhost:3000/api/health
- Swagger: GET /api/docs
- Get an access token to view the product stats
GET http://localhost:3000/api/auth/login - On Postman
- Access "Authorization" tab
- Select "Type: Bearer"
- Place the access token on field "Token"
These files are licensed under the MIT License