Skip to content

This repository contains the solution to the Unico Challenge

License

Notifications You must be signed in to change notification settings

bgildson/unico-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNICO-CHALLENGE

Test and Send Coverage Report Coverage Status Go Report Card

This repository contains the solution to the Unico Challenge.

Running the solution

To follow the steps bellow, you must have installed Docker and docker-compose.

To run locally as production, execute the command bellow

docker-compose -f docker-compose-prod.yml up --build

Run the command bellow to apply the database migrations

docker run --rm -v $(pwd)/migrations:/migrations --network host migrate/migrate:v4.11.0 -path=/migrations -database "postgres://postgres:postgres@localhost:5432/unico_challenge?sslmode=disable" -verbose up

Run the command bellow to import the registers from the file DEINFO_AB_FEIRASLIVRES_2014.csv

docker-compose -f docker-compose-prod.yml exec app /unico-challenge import -f /app/DEINFO_AB_FEIRASLIVRES_2014.csv

The file "unico-challenge.postman_collection.json" contains a Postman Collection to interact with the challenge solution.