TiDraw is a draw system based on client-server model designed to be as secure as possible. For this reason, the draw is executed by the server and users can't cheat altering the result.
It's possible to make the draw result appear from a selected date and time to enhance draw validity. In this way, the draw creator can share the draw link with other people before the draw instant to assure them that he/she hadn't generated multiple draws, waiting for the preferred result.
The draw creator can edit or delete the draw up to five minutes before its execution. The authorization system that permits this feature works under the hood using tokens and cookies, so the user doesn't have to remember a password or to create an account.
- Create an application on Heroku;
- Set up the following buildpacks on Heroku in the specified order:
1. ee\heroku-buildpack-flutter-light 2. heroku\java
- Configure the following Config Vars on Heroku:
FLUTTER_DEPLOY_DIR=src/main/resources/static FLUTTER_SOURCE_DIR=src/main/webapp FLUTTER_BUILD=flutter build web --release --dart-define=DRAW_ID_LENGTH=24
- Create a MongoDB database and connect it to the application using "spring.data.mongodb.uri" and not "MONGODB_URI" as Config Var key on Heroku;
- Push application to Heroku running the following command:
git push heroku master