module
Version:
v0.0.0-...-8491d02
Opens a new window with list of versions in this module.
Published: May 8, 2025
License: MIT
Opens a new window with license information.
README
¶
Halooid Backend
This directory contains the backend services for the Halooid platform.
Directory Structure
cmd/
: Application entry points
internal/
: Private application code
pkg/
: Reusable packages
api/
: API definitions
scripts/
: Build and deployment scripts
configs/
: Configuration files
Getting Started
Prerequisites
- Go 1.20 or later
- PostgreSQL 14 or later
- Redis 6 or later
- Docker and Docker Compose (for local development)
Setup
-
Install dependencies:
go mod download
-
Start the development environment:
cd ..
docker-compose up -d
-
Run the API Gateway:
go run cmd/api-gateway/main.go
Development
Adding a New Service
- Create a new directory in
cmd/
for the service entry point
- Create appropriate packages in
internal/
for the service implementation
- Add the service to the Docker Compose file if needed
Testing
Run tests with:
go test ./...
API Documentation
API documentation will be available at /api/docs
when the API Gateway is running.
Directories
¶
Click to show internal directories.
Click to hide internal directories.