Becky Nielsen, Jenn Archibald, Jon Zarecki and Charlie Walker
Group project created following 3 weeks of JavaScript lessons. Created a full stack JavaScript application Blackjack game, with an Express server and MongoDB database.
Create a browser game based on an existing card or dice game. Model and test the game logic and then display it in the browser for a user to interact with.
The project must be built using only:
- HTML / CSS
- Javascript
- Express
- MongoDB
It must NOT use:
- Any Object Relational Mapper (e.g. ActiveRecord)
- Jquery
- Any pre-built CSS libraries, such as Bootstrap.
- Authentication. Assume that the user already has secure access to the app.
+ Two cards can be dealt to both the dealer and the player
+ Hands can be totalled
+ The highest hand wins and a winner is declared
+ Game displays in browser+ A player can draw cards.
+ The model declares “Bust” if the hand is over 21.
+ A player draws multiple cards until bust or “Hit” is clicked.
+ Dealer takes a turn. Will draw until at least 17 or is bust.
+ Have a purse available to the player.
+ Allow the player to place bets.
+ Have the rules listed.
+ Bets and hands are totalled.
+ Buttons disabled until the appropriate point.- Remember a player and recall their purse.
- Allow for multiple players.
- Allow players to split their hand.
- Allow player to 'cash-out'.These instructions will get the project up and running on your local machine.
Install dependencies:
npm install
Run a mongoDB server (leave running in a terminal window):
mongod
Seed the database:
mongo < server/db/seeds.js
Run webpack (leave running in a terminal window):
npm run build
Run express (leave running in a terminal window):
npm run server:dev
The application is running on port 3000 so visit http://localhost:3000/.


