GithubHelp home page GithubHelp logo

spinzed / react-game-of-life Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 623 KB

Conway's Game of Life remade in JavaScript library React.js among many other utilities

License: MIT License

JavaScript 83.38% HTML 1.17% CSS 13.47% Python 1.97%

react-game-of-life's Introduction

Game of Life

Conway's Game of Life remade in JavaScript library React.js, Python Flask web framework and many other utilities

Installation Guide

This project is configured as a NPM (Node Packet Manager) project

Prerequisities for the project configuration:

-- NodeJS with NPM - version 10.0+
-- Python 3.6+

Project Setup

If all prerequisities are correctly installed, proceed to setup the project itself.
Firstly, you'll setup the Node part of the project -- React front end. After cloning this repository, open a terminal and run:

npm install

This will install all Node libraries and dependencies required. It should be run only once.
To ready the project for development, enter the following command:

npm start

This will start Webpack to pack all the source files in src folder and deliver them for flask to use.
Note: Hot reload is broken for now, looking forward to fix it. Do NOT use this for production. If you want to setup the server for production rather than development, run the following command:

npm run build:prod

This will instruct Webpack to optimize and pack all files for it.
After that, you'll setup the Python part of the project -- Flask backend. To install all Pip modules required, open another terminal and run the following command:

pip install -r requirements.txt

And lastly, to activate back end, run:

Windows

python app.py

Linux and Mac

python3 app.py

Note #1: Debug mode is enabled in app.py, disable it if you want to use the app for production
Note #2: You can setup Flask to run via flask run, should be fully compatible, just mind the note #1

Additional Notes

This is just a small side-project which I use to learn about React and web development in general. Feel free to contribute to this project, give any suggestion etc.
;)

react-game-of-life's People

Contributors

spinzed avatar

Watchers

James Cloos avatar Ivan Sakal 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.