golden-headed-quetzal

command module
v0.0.0-...-ad13f0d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2019 License: GPL-2.0 Imports: 6 Imported by: 0

README

golden-headed-quetzal

Parse and store a structured CSV in a SQL database

Setup

Run this commands if you want to just use the application

docker-compose build
docker-compose up

Install dependencies for development

 make deps

Config Env

  • If you are creating a docker you have to copy config-example.toml to config.toml inside config directory and alter the fields as you like
  • Otherwise, to run the binary directly on the server, you can copy config-example.toml to bconfig/config.toml
  • After that, edit config.toml with your database and server settings. You can use docker-compose.yml as a reference.

Run project in debug mode

First you need to run a postgres

docker run -it --name pq -e POSTGRES_PASSWORD=golden-headed-quetzal -p 5432:5432 -d postgres:12-alpine
HTTP server started on 1337 port
 make run-debug
Upload File

To upload a file you can type the command below

curl -F 'file=@base_teste.txt' http://localhost:1337/upload

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL