Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pradeepsingroul/rock-scissor-and-paper
This is the game of Rock , Scissor and paper where two player exist one is computer and second is user user can pass the Rock/scissor/paper and computer automatically generate your value and then project compares both values and return the winner result based on the game rules.
https://github.com/pradeepsingroul/rock-scissor-and-paper
github java mysql postman springboot springmvc sql sts swegger
Last synced: 27 days ago
JSON representation
This is the game of Rock , Scissor and paper where two player exist one is computer and second is user user can pass the Rock/scissor/paper and computer automatically generate your value and then project compares both values and return the winner result based on the game rules.
- Host: GitHub
- URL: https://github.com/pradeepsingroul/rock-scissor-and-paper
- Owner: pradeepsingroul
- Created: 2023-04-04T04:32:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-19T10:43:52.000Z (over 1 year ago)
- Last Synced: 2024-10-12T02:40:15.953Z (27 days ago)
- Topics: github, java, mysql, postman, springboot, springmvc, sql, sts, swegger
- Language: Java
- Homepage:
- Size: 88.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rock-Scissor-And-Paper
This is the game of Rock , Scissor and paper where two player exist one is computer and second is user user can pass the Rock/scissor/paper and computer automatically generate your value and then project compares both values and return the winner result based on the game rules.![360_F_332862747_zb0oXy6txyqlopzJAW3UNQJCPxTg7eUx](https://user-images.githubusercontent.com/104360276/229961021-4d33573e-da1e-40d1-90a3-6c0808b23ec0.jpg)
## ER Diagram
![ER diagrame (1)](https://user-images.githubusercontent.com/104360276/229960730-1a3ea183-d453-4fdd-966b-62e16e4a9a6e.png)## Features
- User can register your self and login and then he/she can play the game
## Rest Api
```register
PostMethod-
http://localhost:8080/users
``````login
GetMethod-
http://localhost:8080/users/login
``````Play game
GetMethod-
http://localhost:8888/users?RcokPapperScissor={your sign}
```
## Tech Stack
- Core Java
- Spring Boot
- Spring Security
- MySQL (RDBMS)
- Sql
- Maven
- Swagger UI
- postman
- Giuhub## Deployment
To deploy this project on localhost paste this below code in application.properties file in the
resources and update according to your database name, username and password of your MySQL database.```properties
#changing the server port
server.port=8080#db specific properties
spring.datasource.url=jdbc:mysql://localhost:3306/database
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=username
spring.datasource.password=password#ORM s/w specific properties
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=truespring.mvc.throw-exception-if-no-handler-found=true
spring.web.resources.add-mappings=falsespring.mvc.pathmatch.matching-strategy = ANT_PATH_MATCHER
```
### Swagger UI - LinkUse this link to run it on browser.
```swagger
http://localhost:8080/swagger-ui
```## Authors
- [Pradeep Singroul (@pradeepsingroul) ](https://github.com/pradeepsingroul)