/roulette

Primary LanguageJavaScriptMIT LicenseMIT

Casino Roulette

A full stack roulette app.

How It's Made:

Utilized:

  • JavaScript
  • Node
  • Express
  • EJS
  • CSS
  • MongoDB

Users are able to place a bet on a color (red, black, green). Additionally app has the functionality of allowing a casino admin to log in and track wins losses and total revenue the casino has made.

Lessons Learned:

Through building this app, I was able to get comfortable with the basics of GET, PUT, POST and DELETE. As well as further familiarizing myself in using EJS.

Optimizations

As someone with no background in art, styling could definitely use improvements.

Optimize CSS

Some of the code needs to refactored for better readabiility. Some deprecated code (bodyparser) needs to be updated

Upcoming features:

  • Creating a user account
  • Accessibilty features like, high contrast and zoom in options
  • Having multiple users and allowing them to keep track of their lifetime wins and losses

Running the app Locally

Install

npm install

Things to add

  • Create a .env file and add the following as key = value
    • PORT = 2121 (can be any port example: 3000)
    • DB_STRING = your database URI

(don't forget to add your .env to .gitIgnore to keep your secrets a secret)

Run

check package.json script for nodemon