AlexNimoy / http-rest-api

Simple Go REST API server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple Go REST API server


Languages

Language:Go 99.3%Language:Makefile 0.7%