Installation
Building from source
- Install GoLang on your system, instructions for various platforms can be found here.
- Clone the Clamp repository.
cdinto the project.- Configure PostgreSQL, Kafka and RabbitMQ in config/env.go with your settings.
- Run
go getto fetch and install all dependencies - Run
go build main.goto build the project. - Run
./main migrateto execute the migrations. - Run
./mainto start the application.
Clamp runs on port 8080 by default, and exposes Swagger UI on <your_url>/swagger/index.html.
Docker
cdinto the project.- Configure PostgreSQL, Kafka and RabbitMQ in config/env.go with your settings.
- Run
docker build -t clamp-docker .to build the image. - Use
docker run --name=clamp-docker -d -p 9090:8080 clamp-dockerto spawn a container for Clamp.
To know more about how to configure PostgreSQL, Kafka and RabbitMQ, you can check configuration section