Skip to content

lucasscarlatta/intercorp-retail

Repository files navigation

Getting Started

Pre requisites

Installation

  1. Clone the repo
git clone https://github.com/lucasscarlatta/intercorp-retail.git
  1. Go to the project
cd intercorp-retail
  1. Start local database
docker run -d -p 3306:3306 --name=docker-mysql --restart=always -e MYSQL_ROOT_PASSWORD=password -e MYSQL_DATABASE=demo mysql:5.7
  1. Build project locally
./gradlew build
  1. Run project locally
    1. With gradle
    ./gradlew run -Dspring.profiles.active=local
    1. With docker
      1. Build docker Image (This use prod profile)
      docker build -f Dockerfile -t demo-app .
      1. Run docker image
      docker run -d -p 8080:8080 --restart=unless-stopped --link="docker-mysql" \
      -e MYSQL_ROOT_PASSWORD=password \
      -e MYSQL_DATABASE=demo \
      --name demo-app demo-app
  1. Run unit test
./gradlew test

Deploy

Push to develop branch run git action and deploy in digital ocean droplet.

About

Project for intercorp retail

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors