- Docker: https://docs.docker.com/install/
- Docker compose: https://docs.docker.com/compose/install/
- NodeJS: https://nodejs.org/en/
- NVM (optional): https://github.com/nvm-sh/nvm
- JDK11: https://www.oracle.com/technetwork/java/javase/downloads/index.html
- Clone the project:
$ git clone https://github.com/peppelin/feedback.git
- Go to the project API dir:
$ cd .../feedback/api
- Install dependencies with:
$ ./gradlew build
- Build the jar file with:
$ ./gradlew jar
- Go to the project view dir:
$ cd .../feedback/view
- Install dependencies with:
$ npm i
- Build the project with:
$ npm run build
- Export the two ENV VARS needed ffor the docker-compose to run
export MONGO_USER=myUser
export MONGO_PWD=myPwd
export MONGO_DB=myDB
- Go to the project deploy dir:
$ cd .../feedback/deploy
- Execute:
$ docker-compose up -d
- Access view URL: http://localhost
- Access API health URL: http://localhost/api/actuator/health
- Setup a Jenkins 1.1. Configure Jenkins server 1.2. Update deploy/Jenkinsfile