Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mbchoa/example-go-rest-api

📚 Demonstrates different ways to build a golang RESTful API from basic net/http to using an ORM.
https://github.com/mbchoa/example-go-rest-api

golang orm rest-api

Last synced: 19 days ago
JSON representation

📚 Demonstrates different ways to build a golang RESTful API from basic net/http to using an ORM.

Awesome Lists containing this project

README

        

# example-go-rest-api
Demonstrates different ways to build a golang RESTful API from basic net/http to using an ORM.

## Steps

We'll walk through and iterate on building a RESTful API service written in Go like so:
1. `1-hello-world`: Basic web server that outputs "Hello world!" when navigating to the root url.
2. `2-rest-inmemory`: Web server that implements CRUD operations against an in-memory "database".
3. `3-rest-database`: Builds off step 2 by replacing in-memory "database" with a real SQL-based database.
4. `4-rest-database-auth`: Builds off step 3 by implementing authentication.
5. `5-rest-database-auth-jwt`: Builds of step 4 by implementing session handling via JWT.