A weekend Go exercise project
REST API application. Accept and respond in JSON
GET /articles
- query paremeter:
author
,keyword
,limit
,offset
- query paremeter:
POST /articles
- body parameter:
{ "author": "string,required", "title": "string,required", "body": "string,required" }
- body parameter:
- go 1.13
- docker
- docker-compose
make test
docker-compose up -d # prepare env. it takes time
cp env.sample .env # create env var file
make migrate # load/migrate database schema
make mapping # apply index mappings
make compile # compile
make run # run
make acceptence
make build
docker run --network host --env-file .env prabudzak/article:latest