An open API service indexing awesome lists of open source software.

https://github.com/vancanhuit/greenlight

Let's Go Further: Learn how to build RESTful JSON APIs with Go
https://github.com/vancanhuit/greenlight

go golang json-api restful-api web

Last synced: 5 months ago
JSON representation

Let's Go Further: Learn how to build RESTful JSON APIs with Go

Awesome Lists containing this project

README

          

# Let's Go Further - Learn How to Build JSON Web APIs with Go

## Local development

Tools:

- [Go 1.18+](https://go.dev/)
- [Docker](https://docs.docker.com/get-docker/)
- [migrate CLI](https://github.com/golang-migrate/migrate/tree/master/cmd/migrate)
- [hey](https://github.com/rakyll/hey)
- [staticcheck](https://staticcheck.io/)

```bash
export GREENLIGHT_DB_DSN=postgres://dev:dev@localhost:5432/greenlight?sslmode=disable
make db/create
make run/api
make db/migrations/up
make db/drop
```