teleoma

module
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2023 License: AGPL-3.0

README

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL