Slot machine
A web app to play a fun slot machine online.
Technologies
Front-end: Js, Css, Ejs
Back-end: Express + Node.js, Postgres + Sequelize
The project will try to mimic a real "slot machine", so users will "win" or "lose" credits.
Users have to create an account which then will give them access to the casino.
Each "new account" will provide 100 free credits and they can get more by buying them via online payment (credit card).
Whenever a new user is created, his/her data will be stored in a database table User:
- Name (string)
- Lastname (string)
- Email (string)
- Password (string)
- Credits (integer, 100 by default)
When the user clicks on "play", an ajax request will update the credits (reducing them by 5), if the user wins, a second ajax request will grant the user 50 more credits.
In order to render the images that will spin, a JSON with images will be loaded and JS will take care of the "spinning animation".
The app is deployed in Heroku, see it here.
After login in / signing up, users have the option to "buy more credits", by inputting their credit card details. (No real transactions are made).
The default skin for the slot is the one with Mario Bros characters. Users have the ability to either change the skin (you can choose either Pusheen or Pokemon) and also change the bet, which is the number of slots you can play (up to 5).
Select skin view
Machine with the highest bet (5 slots, the more you play, the more credits you can win or lose).
Spinning animation view with a different skin.