GithubHelp home page GithubHelp logo

tictactoegame's Introduction

Tic Tac Toe Game

React-Redux game

  1. It is a 2-player game (no computer opponent, playing in the same browser window)
  2. Before each round the players are asked for their names
  3. Players switch after every turn
  4. Once a round is finished, the winner (or draw) will be displayed on a leaderboard

Get Started

  1. Clone the project. git clone https://github.com/mnoleto/tictactoegame.git.
  2. Install dependencies. npm install
  3. Run the setup script. npm run setup
  4. Run the app - dev mode. npm start -s
  5. Automated production build. npm run build

Initial Machine Setup

  1. Install Node 4.0.0 or greater - (5.0 or greater is recommended for optimal build performance). Need to run multiple versions of Node? Use nvm.
  2. Install Git.
  3. Disable safe write in your editor to assure hot reloading works properly.
  4. On a Mac? You're all set. If you're on Linux or Windows, complete the steps for your OS below.

On Linux:

  • Run this to increase the limit on the number of files Linux will watch. echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

On Windows:

  • Install Python 2.7. Some node modules may rely on node-gyp, which requires Python on Windows.
  • Install C++ Compiler. Browser-sync requires a C++ compiler on Windows. Visual Studio Express comes bundled with a free C++ compiler. Or, if you already have Visual Studio installed: Open Visual Studio and go to File -> New -> Project -> Visual C++ -> Install Visual C++ Tools for Windows Desktop. The C++ compiler is used to compile browser-sync (and perhaps other Node modules).

Having Issues? Try these things first.

  1. Make sure you ran all steps in Get started including the initial machine setup.
  2. Run npm install - If you forget to do this, you'll see this: babel-node: command not found.
  3. Install the latest version of Node. Or install Node 5.12.0 if you're having issues on Windows. Node 6 has issues on some Windows machines.
  4. Make sure files with names that begin with a dot (.babelrc, .editorconfig, .eslintrc) are copied to the project directory root. This is easy to overlook if you copy this repository manually.
  5. Don't run the project from a symbolic link. It may cause issues with file watches.
  6. Delete any .eslintrc that you're storing in your user directory. Also, disable any ESLint plugin / custom rules that you've enabled within your editor. These will conflict with the ESLint rules defined in this project.
  7. Make sure you don't have NODE_ENV set to production on your machine.

Technologies

Tech Description
React Fast, composable client-side components.
Redux Enforces unidirectional data flows and immutable, hot reloadable store. Supports time-travel debugging. Lean alternative to Facebook's Flux.
React Router A complete routing library for React
Redux Saga An alternative side effect model for Redux apps
Redux Sauce Provides a few tools for working with Redux-based codebases.
Babel Compiles ES6 to ES5. Enjoy the new version of JavaScript today.
Webpack Bundles npm packages and our JS into a single file. Includes hot reloading via react-transform-hmr.
Browsersync Lightweight development HTTP server that supports synchronized testing and debugging on multiple devices.
Jest Automated tests with built-in expect assertions and Enzyme for DOM testing without a browser using Node.
TrackJS JavaScript error tracking.
ESLint Lint JS. Reports syntax and style issues. Using eslint-plugin-react for additional React specific linting rules.
SASS Compiled CSS styles with variables, functions, and more.
PostCSS Transform styles with JS plugins. Used to autoprefix CSS
Editor Config Enforce consistent editor settings (spaces vs tabs, etc).
npm Scripts Glues all this together in a handy automated build.

Starter kit used: React Slingshot Project

tictactoegame's People

Contributors

coryhouse avatar kwelch avatar mnoleto avatar ileonelperea avatar dwmkerr avatar mlwigdahl avatar nickytonline avatar rndstr avatar fayimora avatar vdclouis avatar oliboy50 avatar sheldonjones avatar greenkeeperio-bot avatar michaeljonathanblack avatar toddprater avatar oshalygin avatar yoniji avatar davidglbr avatar w3cj avatar sudobat avatar treadingwell avatar kohei-takata avatar bettiolo avatar peterbsmyth avatar readmecritic avatar ruridge avatar ryannealmes avatar sadikaya avatar samit4me avatar sharpes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.