quiquelowbeat / DiceGame.Mongo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


spring logo

DICE GAME - API REST

A Dice Game API REST made with Spring Boot and MongoDB. API docs made with Swagger. Deployed using Heroku for testing purposes.

About this project

This project is the final Sprint I built for the Backend Java Development Bootcamp (IT Academy). It's an API REST of a Dice Game with simple rules. Use the dedicated endpoint to join the game an register. Then use the endpoint to roll the dice: if the sum of the two dices is lucky 7, you WIN. Otherwise, you lose. All your plays will be registered in the DB and the winning ratio calculated.

API REST best practices applied.

Tech stack used

✅ JAVA and Spring Boot
✅ MongoDB
✅ JUnit - unit testing
✅ Mockito - integration tests
✅ Postman
✅ Heroku (deployment for game testing)
✅ Swagger (API docs)

Endpoints

Check and test all endpoints here: https://dice-game-apirest.herokuapp.com/swagger-ui.html

Test the API

If you want to test the API use this Heroku server: https://dice-game-apirest.herokuapp.com/ followed by the endpoint.

What I've learned?

️☑️API REST: best practices.
️☑️Separation of concerns using layers.
️☑️JUnit testing and Mockito.
☑️Set up a DB in the cloud (MondoDB Atlas)
☑️Testing of endpoints with Postman.
☑️Usage of collections and environments on Postman (love this)
☑️Swagger UI and OpenAPI for docs.
☑️Deployment on a Heroku server for testing purposes.

Future Updates

➡️ Integration of login and security with JWT.

Contact

Quique Sánchez Suárez
LinkedIn
kikeebcn@gmail.com

About


Languages

Language:Java 100.0%