Track your progress, show your growth!
- Go 1.25+
- Docker and Docker Compose
git clone [repo-url]
cd fitbytecp .env.sample .env
# Edit .env with your configuration including port settingsdocker compose up -dThis will start and configure:
- PostgreSQL database with automatic migrations
- Redis for caching
- MinIO for file storage
- Application server
curl http://localhost:8080/api/v1/healthzPOST /api/v1/login- User loginPOST /api/v1/register- User registration
GET /api/v1/user- Get user profile (requires auth)PATCH /api/v1/user- Update user profile (requires auth)
GET /api/v1/activity- Get user activities with filtering (requires auth)POST /api/v1/activity- Create new activity (requires auth)PATCH /api/v1/activity/:activityId- Update activity (requires auth)DELETE /api/v1/activity/:activityId- Delete activity (requires auth)
POST /api/v1/file- Upload profile image (requires auth)
GET /api/v1/healthz- Health check
Default ports are configured in .env file:
- Application:
HTTP_PORT=8080 - PostgreSQL:
PG_PORT=5432 - Redis:
REDIS_PORT=6379 - MinIO API:
MINIO_PORT=9000 - MinIO Console:
MINIO_CONSOLE_PORT=9001
Modify these values in your .env file if ports conflict with existing services.
All dependencies are managed through Docker Compose. No need to install PostgreSQL, Redis, or MinIO separately.
Migrations run automatically when starting with Docker Compose. Database connection details are configured in .env file.
Uploaded files are stored in MinIO and accessible via the MINIO_PUBLIC_ENDPOINT configured in .env.
MinIO admin console available at the port specified by MINIO_CONSOLE_PORT.
Credentials are set via MINIO_ACCESS_KEY and MINIO_SECRET_KEY in .env.
Redis connection details including password are configured in .env file.