Mintbean Hackathon Project | July 2021
A pixel-themed head to head blackjack game.
https://blackjack-showdown.herokuapp.com/
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
- CD into 'client' and run
npm install
to install react and its dependencies. - CD into 'server' and run
npm install
to install backend dependencies.
npm start
npm start
npm run storybook
- Front-end: ReactJS v17.0.2
- Back-end: Node, Express v4.17.1
- Database: PostgreSQL
- axios
- react-router-dom
- socket.io
- bcrypt
- jsonwebtoken
- knex
- morgan
- pg
- nodemon
- storybook
- Evelyn Yoa
- GitHub: https://github.com/eyoa
- LinkedIn: https://www.linkedin.com/in/evelyn-yoa/
- Audrey Margolis
- GitHub: https://github.com/AudreyMargolis
- LinkedIn: <>
- Alvin Lin
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!"
}
socket based connection