Skip to content

Chase78712002/Blackjack-Showdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackjack-Showdown

Mintbean Hackathon Project | July 2021

A pixel-themed head to head blackjack game.

Deployed site link

https://blackjack-showdown.herokuapp.com/

Setup

Blackjack-Showdown uses React version 17.0.2, Express version 4.17.1. Please ensure you have a compatible version of ruby before continuing. ////config:set $(cat ./server/.env) set .env REACT_APP_API_BASE_URL to connect to frontend

  1. CD into 'client' and run npm install to install react and its dependencies.
  2. CD into 'server' and run npm install to install backend dependencies.

Running Backend Server

npm start

Running Webpack Development Server

npm start

Running Storybook Visual Testbed

npm run storybook

Tech stack

  • Front-end: ReactJS v17.0.2
  • Back-end: Node, Express v4.17.1
  • Database: PostgreSQL

Other Dependencies

  • axios
  • react-router-dom
  • socket.io
  • bcrypt
  • jsonwebtoken
  • knex
  • morgan
  • pg
  • nodemon
  • storybook

Developers

Screenshots

"Log in page" "Landing page" "Game start page" "Game 1" "Game 2" "Dealer won" "Player won"

Backend Documentation

Users

Authenticate User login

  body: {"data": {
    "email": "spidey@neighbourhood.com",
    "password": "password"
  }}

Successful Response:

{
"user": {
"email": "spidey@neighbourhood.com",
"username": "Spiderman",
"profile_img_url": null,
"coins": 110
},
"accessToken": "encoded token"
}

Invald credentials response:

{
    "message": "invalid"
}

Error Response:

{
    "error": "error message"
}
body: {
  "data": {
    "username": "test7",
    "email": "test7@testing.com",
    "password": "password",
    "coins": 100
  }}

Success response:

Error response

{
    "error": "Username already exists!"
}

Game

socket based connection

About

A pixel-themed head to head blackjack game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •