This repository is KUclap back-end source code which is written in golang for implementing a web API and using it access to the database 🚀.
Postman Collection 📝 URL : https://www.getpostman.com/collections/79cb50bda1b010277ac9
To get a local copy up and running follow these simple steps 🎉.
Install these prerequisites ✅ .
- Go
- Docker
- Clone the repo
git clone https://github.com/KUclap/KUclap-review.git
- Install packages
go get ./...
# or
go mod download
Use modd
for live reloading by follow this command 😎 .
make gomodd
This command is for deploying to Heroku 🤒 (Stagging Environment).
make deploy-to-staging
Merge commits from master into pre-prod-release branch. The pipeline will deploy to Gandalf's server (DigitalOcean droplet) automatically 🤮.
git checkout pre-prod-release
git pull origin master
...
git push
Like Pre-Production 😬, Merge commits from master into release branch. The pipeline will deploy to Gandalf's server (DigitalOcean droplet) automatically 😳 .
git checkout release
git pull origin master
...
git push
- For more details about commands, Please read
Makefile
. .github/workflows
is used for storing pipeline script for automated deployment.- You have to install
heroku
CLI for deploying image to staging. - Heroku only detects docker image (Dockerfile) which filename starting with 'D' capital letter.