https://github.com/hvalfangst/fasthttp-pgx-api
API programmed in Golang with FastHTTP framework and PGX
https://github.com/hvalfangst/fasthttp-pgx-api
docker fasthttp golang pgx
Last synced: about 1 month ago
JSON representation
API programmed in Golang with FastHTTP framework and PGX
- Host: GitHub
- URL: https://github.com/hvalfangst/fasthttp-pgx-api
- Owner: hvalfangst
- Created: 2023-11-08T20:41:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-14T13:54:09.000Z (over 2 years ago)
- Last Synced: 2025-01-25T06:25:09.271Z (over 1 year ago)
- Topics: docker, fasthttp, golang, pgx
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Golang FastHTTP API with PGX
## Requirements
* x86-64
* Linux/Unix
* [Golang](https://go.dev/)
* [Docker](https://www.docker.com/products/docker-desktop/)
## Startup
The script "up" creates our DB container, compiles and executes our binary:
```
1. docker-compose -f db/cars/docker-compose.yml up -d
2. go build -o golang_api src/main.go
3. ./golang_api
```
## Shutdown
The script "down" removes our DB container:
```
1. docker-compose -f db/cars/docker-compose.yml down
```