Backend API for UniCRM
- Clone the repository:
git clone https://github.com/ashvwinn/unicrm-api.git
cd unicrm-api-
Set environment variables (look at .env.example for reference)
-
Setup database with Docker Compose:
docker compose up -d- Run database migrations with the
migratetool:
migrate -path=./migrations -database=$UNICRM_DB_DSN up- Start the application:
With
goor withair
air
# or
go run ./cmd/api
# or
go build -o bin/main ./cmd/api
./bin/main