Archio is a Go-based HTTP server application.
- Go (1.21+)
- Docker (optional, for containerization)
First, duplicate the example environment variables file and update it with your desired configuration:
cp .env.example .envDownload the required Go modules:
go mod downloadTo start the server during local development:
go run cmd/api/main.goIf your .env specifies RUN_MODE=development, a statsviz visualization dashboard will become available.
- Health Check endpoints:
http://127.0.0.1:3000/health - Metrics Dashboard:
http://127.0.0.1:3000/debug/statsviz/
To compile the application into a standalone executeable binary:
go build -o archio-api cmd/api/main.goRun the binary:
./archio-apiA Dockerfile is provided that uses a multi-stage build to package the application efficiently.
docker build -t archio-api .Provide your .env file to the container to pass the required configuration, and bind the application port to your host machine:
docker run -p 3000:3000 --env-file .env archio-api