Skip to content

Latest commit

 

History

History
72 lines (46 loc) · 1.02 KB

README.md

File metadata and controls

72 lines (46 loc) · 1.02 KB

Postal Code Service

Description

Service to get a list of provinces, cities, districts, villages and postal codes of Indonesia

Project Dependencies

  1. Node version >= v14
  2. PostgreSQL version >= 14

Installation

$ npm install

# After run the command above please make sure to change .env file

Running the migration

# To make sure migration files are on the dist folder
$ npm run build

$ npm run migration:run

Running the seed

$ npm run seed

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Running the app with Docker Compose

# Make sure to change DATABASE_HOST value on .env file to postgres

$ docker-compose up -d -V --build

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

API Documentation

API documented using swagger and can be accessed at path /docs