Skip to content

Service that built with NestJs and Postgres to get a list of provinces, cities, districts, villages and postal codes of Indonesia

Notifications You must be signed in to change notification settings

achmadrifaldi/postal-code-service

Repository files navigation

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

About

Service that built with NestJs and Postgres to get a list of provinces, cities, districts, villages and postal codes of Indonesia

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published