KUclap / KUclap-review

Back-end service for management review (https://api-review.kuclap.com).

Home Page:https://api-review.kuclap.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


Logo

KUclap Back-End

Deploy-to-DO-production

Overview

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 ๐Ÿš€.

Documentation

Postman Collection ๐Ÿ“ URL : https://www.getpostman.com/collections/79cb50bda1b010277ac9

Built With ๐Ÿ”ง

Getting Started

To get a local copy up and running follow these simple steps ๐ŸŽ‰.

Prerequisites

Install these prerequisites โœ… .

  • Go
  • Docker

Installation

  1. Clone the repo
git clone https://github.com/KUclap/KUclap-review.git
  1. Install packages
go get ./...
# or
go mod download

Development / Usage

Use modd for live reloading by follow this command ๐Ÿ˜Ž .

make gomodd

Deployment

Staging

This command is for deploying to Heroku ๐Ÿค’ (Stagging Environment).

make deploy-to-staging

Pre-Production

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

Production

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

Note ๐ŸŒถ

  • 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.

About

Back-end service for management review (https://api-review.kuclap.com).

https://api-review.kuclap.com

License:MIT License


Languages

Language:Go 94.9%Language:Dockerfile 3.3%Language:Makefile 1.8%