The Central Go Modules Repository

To use GoCenter:
export GOPROXY=https://gocenter.io
0
Stars
UNKNOWN
License
3
Downloads
January 1st 0001
Last Modified
Version:
Loading...

Paack Quiz

Install

run build.sh

Running

run docker-compose up in one terminal.

in csv-reader run: ./csv-reader -file samples/data-100.csv | ../crm-importer/crm-importer

Contents

  • api/

The CRM. A Rest API returning 500 errors in 30% of the cases.

  • common/

Shared lib to access the database

  • csv-reader/

Reads a csv file in format: email, name and imports each row into the postgresql database yielding the id of the inserted field to the stdout

  • crm-impoter/

Checks if a customer identified by an id was already imported into the CRM, if not, calls the API until it gets back a successful response and eventually updates the customer to denote it was imported.

  • database/

Database schema, loaded when the docker image is build

  • docker-compose.yml

Docker compose file to boot the postgresql database and the API.

docker-compose build
docker-compose up
  • tmp/

Database storage.

TODO

  • tests :