Skip to content

A react API for simple dice game. (This API requires the UI to be working. UI link is in the description)

License

Notifications You must be signed in to change notification settings

Cesurhan/dice-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dice-api

A react app to chat, create game rooms and play a simple dice game. This API requires dice-ui to be working. This project is using shut-up-api as base project.

screen shot 2017-05-05 at 17 20 38

Steps

These are the steps I followed when working on this app:

  1. Setting up project
  2. Adding JoinGame
  3. Adding player limitation
  4. Displaying winning number
  5. Adding throw dice
  6. Announcing the winner

Database Structure

  1. User
  • name:string
  • email:string
  • password:string
  • gravtar:string
  1. Message
  • text:string
  • author:string
  1. Game
  • title:string
  • winningNumber:integer
  • playerIds:array
  • isWinner:boolean
  • thrownDice:integer
  • winnerName:string

Running Locally

Make sure you have NodeJS and npm installed.

git clone git@github.com:Cesurhan/dice-api.git
cd dice-api
npm install
npm start
open http://localhost:3030

Related documentation

For more information about using React and Redux, see these links:

Testing

Simply run npm test and all your tests in the test/ directory will be run.

Scaffolding

Feathers has a powerful command line interface. Here are a few things it can do:

$ npm install -g feathers-cli             # Install Feathers CLI

$ feathers generate service               # Generate a new Service
$ feathers generate hook                  # Generate a new Hook
$ feathers generate model                 # Generate a new Model
$ feathers help                           # Show all commands

Help

For more information on all the things you can do with Feathers visit docs.feathersjs.com.

About

A react API for simple dice game. (This API requires the UI to be working. UI link is in the description)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published