The back-end API for a CrowdBucks instance server.
- Go 97.4%
- PLpgSQL 1.4%
- HTML 1.2%
| .github/workflows | ||
| app | ||
| components | ||
| playground | ||
| providers | ||
| test | ||
| .dockerignore | ||
| .gitignore | ||
| API.md | ||
| config.yaml | ||
| config.yaml.sample | ||
| docker-compose.yaml | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| README.md | ||
| staticcheck.conf | ||
Crowdbucks
⚠️ This project is under heavy development and should not be used in production yet.
🏎️ Running the Project
🚀 Using Go and Postgres
- Clone the project repository:
git clone https://codeberg.org/crowdbucks/crowdbucks-api - Navigate to the project directory:
cd crowdbucks-api - Create an empty Postgres database.
- Update the
config.yamlfile in the project root directory with the actual values for your database. - Download the project dependencies:
go mod download - Run the project:
go run main.go
🐳 Using Docker
- Clone the project repository:
git clone https://codeberg.org/crowdbucks/crowdbucks-api - Navigate to the project directory:
cd crowdbucks-api - Build the Docker image:
docker build -t crowdbucks-api . - Replace the environment variables below with your own and run the Docker container:
docker run \ --name crowdbucks-api \ -e PROTOCOL=https \ -e FQDN=yourdomain.com \ -e PORT=7080 \ -e POSTGRES_HOST=127.0.0.1 \ -e POSTGRES_PORT=5432 \ -e POSTGRES_DATABASE=crowdbucks \ -e POSTGRES_USER=postgres \ -e POSTGRES_PASSWORD=password \ -p 7080:7080 \ crowdbucks-api
🐳 Using docker-compose
- Clone the project repository:
git clone https://codeberg.org/crowdbucks/crowdbucks-api - Navigate to the project directory:
cd crowdbucks-api - Run the Docker containers using docker-compose:
docker-compose up