This repository contains the backend API service for FunderMaps.
- RESTful API with Go Fiber
- Authentication with JWT
- PostgreSQL database integration
- Environment-based configuration
- API documentation
- Health checks and monitoring
- Go 1.21+
- PostgreSQL 16+
Copy the example environment file:
cp .env.example .envModify the values in .env to match your local environment.
- Install dependencies:
go mod download- Run the application:
go run ./cmd/server/main.goAPI documentation is available at /docs when running in development mode.
Build a production binary:
go build -o fundermaps-api ./cmd/server/main.go# Set up environment variables
export ENVIRONMENT=production
export DB_HOST=your-db-host
export DB_USER=your-db-user
export DB_PASSWORD=your-db-password
export DB_NAME=your-db-name
export JWT_SECRET=your-jwt-secret
# Run the binary
./fundermaps-api.
βββ app/ # Application code
β βββ config/ # Configuration management
β βββ database/ # Database connections
β βββ handlers/ # HTTP request handlers
β β βββ management/ # Admin management handlers
β βββ middleware/ # HTTP middleware
β βββ models/ # Database models
βββ cmd/ # Application entry points
β βββ server/ # API server
βββ public/ # Public static files
βββ static/ # Static assets
βββ storage/ # Uploaded files storage
βββ .env.example # Example environment file
βββ README.md # Project documentation