Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mbchoa/example-go-rest-api
- Owner: mbchoa
- License: mit
- Created: 2020-06-08T07:54:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-21T08:12:31.000Z (over 4 years ago)
- Last Synced: 2024-05-23T04:59:19.463Z (6 months ago)
- Topics: golang, orm, rest-api
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.