Skip to content

gavarava/rock-paper-scissors-2

Repository files navigation

Rock Paper Scissors Build Status

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
About the game of Rock Paper Scissors

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Building the project

mvn clean install

mvn clean package -Dmaven.test.skip=true

Running the tests

mvn clean verify

Run the application

Using java jar command

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

Using Docker

Build and Push the Docker image
docker build -t edekargaurav88/rps2:1.2 .
docker push edekargaurav88/rps2:1.2
Run Docker container
docker run -p 8080:8080 -dit rps2:1.1

Built With

Versioning

Java Coding Style for IDE

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Google

About

Rewrite of rockpaperscissors game using State Machines and Lombok

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published