Categorygithub.com/Backstabe/http-rest-api
module
0.0.0-20200202161739-0c07ff047444
Repository: https://github.com/backstabe/http-rest-api.git
Documentation: pkg.go.dev

# README

HTTP Go API

Simple REST API on Golang with logs, CORS and Authentication middlewares.

.env example

TEST_DATABASE_URL=host=localhost dbname=restapi_dev sslmode=disable user=developer password=developer port=5453

Run PostgreSQL DB

docker-compose up

Migrations

https://github.com/golang-migrate/migrate

migrate -path migrations -database "postgresql://developer:developer@localhost:5453/restapi_test?sslmode=disable" up

Tests

make test

Build && Run application

make && ./apiserver

# Packages

No description provided by the author