A simple telemetry service built with Go that allows you to store and retrieve metric data.
- Go 1.23.5 or higher
- Docker and Docker Compose
- Make (optional)
- Postman (optional)
- Clone the repository:
git clone https://github.com/bo0st3r/go-fast.git
cd go-fast- Create a
.envfile in the root directory with the following content:
POSTGRES_USER=your_username
POSTGRES_PASSWORD=your_password
POSTGRES_DB=your_database_name
APP_PORT=8080- Start the database:
make db-up- Run the application:
make devThe service will be available at http://localhost:8080
curl http://localhost:8080/healthcurl -X POST http://localhost:8080/v1/telemetry \
-H "Content-Type: application/json" \
-d '{"metric": "nb_players", "value": 5}'curl http://localhost:8080/v1/telemetrycurl http://localhost:8080/v1/telemetry/peakTo stop the database:
make db-downTo clean built artifacts:
make cleanA Postman collection is included in the repository for easy API testing. Import go-fast.postman_collection.json into Postman to get started.