afotescu / ciklum_test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preparation

Clone this repository

git clone https://github.com/afotescu/ciklum_test.git

Before running the service you need to add in the root of this app a file called ports.json

Running the service

To run this app you must have docker installed

Tests will run automatically as a build step

Run the following command in the root of the application

docker-compose up --build

This command will run 3 docker services

  • mongodb
  • PortDomainService
  • ClientAPI

API

You can access the client api on localhost:5000

The api contains only 1 endpoint /ports with queryparams limit=uint&offset=uint for simple pagination

The maximum amount of ports returned is 100

About


Languages

Language:Go 95.4%Language:Dockerfile 4.6%