A Spring Boot Microservice for the game of Rock Paper Scissors
A backend running in Postgres is required to run this application in the "prod" profile.
- Start Postgresql server
- Then run with profile liquibase for setting up the database
- Then run with prod command using the java jar command
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
mvn clean install
mvn clean package -Dmaven.test.skip=true
mvn clean verify
java -jar rock-paper-scissors-<version>.jar
java -jar -Dspring.profiles.active=transient rock-paper-scissors-2-1.4-SNAPSHOT.jar
java -jar -Dspring.datasource.driver-class-name=org.postgresql.Driver -Dspring.datasource.url=jdbc:postgresql://localhost:5432/postgres -Dspring.datasource.username=postgres -Dspring.datasource.password=password123 -Dspring.profiles.active=liquibase rock-paper-scissors-2-1.4-SNAPSHOT.jar
java -jar -Dspring.datasource.driver-class-name=org.postgresql.Driver -Dspring.datasource.url=jdbc:postgresql://localhost:5432/postgres -Dspring.datasource.username=postgres -Dspring.datasource.password=password123 -Dspring.profiles.active=prod rock-paper-scissors-2-1.4-SNAPSHOT.jar
docker build -t edekargaurav88/rps2:1.2 .
docker push edekargaurav88/rps2:1.2
docker run -p 8080:8080 -dit rps2:1.1
- SpringBoot - The web framework used
- Maven - Dependency Management
- Docker - Containerization
- Gaurav Edekar - https://github.com/gavarava
This project is licensed under the MIT License - see the LICENSE.md file for details