Skip to content

weslleyaraujo/react-simon-says

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create React App.

Blogpost on how and why's I built this app

React Simon Says

React Simon Says

So basically I needed a reason to play with the awesome Styled Components from @mxstbr and then I decided to build a "Simon Says" like game

You can play it here

Summary

The app was build with redux so it was quite simple to manage the data flow using async functions together with redux-thunk

tl;dr thunks and async functions play nice together ❤️

const foo = (payload) => async (dispatch) => {
  await sleep(500);
  dispatch(bar());
};

Quick Start

$ git clone https://github.com/weslleyaraujo/react-simon-says.git
$ cd react-simon-says
$ npm install
$ npm start

Specs

I am using Jest as my spec runner, you can run it using:

$ npm test

and to get a coverage overview:

$ npm test -- --coverage

Contributing

Changes and improvements are more than welcome! Feel free to fork and open a pull request. Please make your changes in a specific branch and request to pull into master! If you can, please make sure the game fully works before sending the PR, as that will help speed up the process.

License

This application is licensed under the Beerware License