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
- Install go (1.14.1+) following the instructions.
- Setup your IDE
- Clone the repo
Build and Run
If you want to build and run the project from the command line, follow this steps.
- CD to the appropriate directory
cd cmd/api
- Build the project
go build -v .
- 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
- Tag a commit as a release version with the following rule:
vM.m.pRC
being M: Major version, m: minor version and p: patch
- Push tag:
git push --tag
Build and Run on Production Server
- Tag a commit as a release version with the following rule:
vM.m.p
being M: Major version, m: minor version and p: patch
- Push tag:
git push --tag
Example:
git tag v1.0.2
git push --tag