Ubet Webserver is a web service created to handle database requests from an Android App 'Ubet' GitHub.

This webserver is totally implemented in Java using Jersey to receive and process the requests and SQL to manage user data. The project itself is divided into three parts:

- Webservice
- API Communication
- Database handler

The webservice is implemented using Jersey that receives a user's request, send it to the API Communication that uses the Database Handler to exchange data with the Database itself. All the requests are authenticated using the Auth Token Manager - that you can find on folder "/src/main/java/ubet/sv/" - which provides a safer way to authenticate user's request by not storing its password anywhere besides the database.

Once done with checking the user authentication, the request is sent to the API Communication for processing, all the background operations are done there and then sent to the Database by the Database Handlers.

The Database Handler were programmed to perform SQL Query Statements and all of them are SQL-Injection proof, so the system doesn't permit that malicious users makes forbidden requests do the database, maintaining this way the database secure.

Heroku

The webserver is deployed using Heroku (www.heroku.com) and can be done by the following terminal commands:

$ git cd webserver

$ git init

$ git heroku create

$ git add src/ pom.xml Procfile system.properties

$ git commit -a -m {MESSAGE}

$ git push heroku

After deployed the system is ready to go!

Games System Update

All the games and user's score are automatically updated every 1 hour, so no one has to bother with updating user's score after every game.

Authors and Contributors

I hereby declare the following contributors, with coding, testing and support for this system: Gustavo Alves (@GustavoMA) Bianca 'Rosa' Fook (@biancafook) Arysson (@arysson) And myself of course (@MateusDantas)

Support or Contact

Any troubles with this system, you should add a comment on this page on email us at: mateus.dantas AT ccc.ufcg.edu.br