Skip to content

omalbum/omalbum-back

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OMAlbum API

Contributors

The base for this repository (initial commit) was mostly written by Carlos Desseno.

  • Iván Sadofschi Costa

  • Sebastián Cherny

  • Carlos Miguel Soto

Setup

  1. Install go (1.14.1+) following the instructions.
  2. Setup your IDE
  3. Clone the repo

Build and Run

If you want to build and run the project from the command line, follow this steps.

  1. CD to the appropriate directory
cd cmd/api
  1. Build the project
go build -v .
  1. Run the project
./api

Run with Docker

Project

docker build -t teleoma .
docker run -it --rm --network host --name teleoma teleoma

MySQL

docker run -it --rm --name mysql-teleoma -p 3306:3306 -v db-data:/var/lib/mysql-teleoma -e MYSQL_ROOT_PASSWORD=teleoma -e MYSQL_PASSWORD=teleoma -e MYSQL_USER=teleoma -e MYSQL_DATABASE=teleoma mysql:8.0.19

Build and Run on Testing Server

  1. Tag a commit as a release version with the following rule: vM.m.pRC being M: Major version, m: minor version and p: patch
  2. Push tag: git push --tag

Build and Run on Production Server

  1. Tag a commit as a release version with the following rule: vM.m.p being M: Major version, m: minor version and p: patch
  2. Push tag: git push --tag

Example:

  1. git tag v1.0.2
  2. git push --tag