Master Mind Game
API implementation on REST services
This version is only available through REST requisitions using Json as data format.
It is implemented in Java with Spring Boot. The application server is integrated within the application.
The code is available on GitHub: https://github.com/leite08/mastermind
Endpoints
- /new_game [POST]
- option to start a multiplayer game
- /guess [POST]
Requirements
- Java 8
- MySQL (may use another JPA-compatible database, need to update pom.xml - drivers - and application.properties).
Installation
Items from 1 to 3 can be skipped if you want to use an existing database, just make sure you update "application.properties" accordingly.
- Install MySQL
- Create a database in MySQL with name "mastermind"
- Create a user "mastermind" with the password "mastermind"
- Run the script "src/script/populate.sql" in the database
- Build and package the application:
- $mastermind_home/> mvn install
- $mastermind_home/> mvn install
- Run the application and server:
- $mastermind_home/> java -jar target/mastermind-*.jar
- Access the endpoint '':
The implementation is based in this documentation: http://careers.axiomzen.co/challenge
Testing
- Itegration tests:
- Run the class com.rafaelleite.mastermind.MasterMindApplicationTests
- Unit tests:
- Currently only one class: com.rafaelleite.mastermind.serviceGameServiceTest
Future
- Improve integration tests
- Improve unit testing
- Use Https and Authentication?
Log in or sign up for Devpost to join the conversation.