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 .env
Modify the values in .env
to match your local environment.
- Install dependencies:
go mod download
- Run the application:
go run ./cmd/server/main.go
API 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