https://github.com/jonathas/go-rest-api
A REST API in Golang
https://github.com/jonathas/go-rest-api
Last synced: 3 months ago
JSON representation
A REST API in Golang
- Host: GitHub
- URL: https://github.com/jonathas/go-rest-api
- Owner: jonathas
- License: gpl-3.0
- Created: 2023-07-09T16:10:14.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-09T16:19:57.000Z (about 3 years ago)
- Last Synced: 2025-03-06T12:16:22.252Z (over 1 year ago)
- Language: Go
- Size: 5.69 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Go REST API
This is a basic project I implemented to practice how a REST API could be done in Go.
It uses gorilla/mux, gorm and Postgres (via Docker).
## Starting the project
Start and seed the DB:
```bash
docker compose -f ./resources/docker-compose.yml up
```
Start the server:
```bash
air
```
Ps: air provides live-reload for the server
Access the endpoint:
```bash
http://localhost:8080/api/personalities
```
A Postman collection can be found inside /docs