Code Cage API
This is a code cage API.
Building and Running π
A Dockerfile is included to build a Docker image of the application.
# Build Docker Image for production
docker build -t code-cage-api .
# Run Docker Container for development (hot reloading)
docker build -t code-cage-api -f Dockerfile.dev .
# Copy env file from .env.example
cp .env.example .env
# Run Docker Container for production
docker run -p 8080:8080 --env-file .env --name code-cage-api code-cage-api
DB Setup π¦
PostgreSQL
- Install PostgreSQL locally using Docker
docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=postgres --name postgres postgres
Dependencies π¦
Go Modules are used for dependency management, which are listed in go.mod and go.sum.
Contributing π€
We welcome contributions! Please see CONTRIBUTING.md for details on how to contribute.
License π
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.