GithubHelp home page GithubHelp logo

kavinkul / react-wgc-interactive Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 16.52 MB

This is source code for interactive manual Wolf, Goat, and Cabbage. For demonstration, go to kavinkul.github.io

HTML 20.47% CSS 20.07% JavaScript 59.46%

react-wgc-interactive's Introduction

Wolf, Goat, and Cabbage Interactive Manual Source Project

This is a manual for Wolf, Goat, and Cabbage module for Keep Talking and Nobody Explodes.

This project was created with Create React App.

Setting Up

  1. This project requires Node.js. Latest version of Node is recommended.
  2. Clone this project with git clone https://github.com/kavinkul/React-wgc-interactive.git
  3. In the root of the project, run npm install to install necessary node packages.
  4. To start development server, run npm start which will start the server at http://localhost:3000
  5. You can build the project with npm run build. This will create a build folder with main html file at its root. You must start http server at that folder or its parent for the manual to work correctly. In python 3, you can run python -m http.server.

Translation

All the texts in the interactive section of the manual are being fetched from translation.json file. You don't need to rebuild the project after translating. To translate this section:

  1. In translation.json, follow the template of "en" language in this file. You can add a new language of your choice by creating a key value pair of language and translation:
    {
        "en": {
            English Translation Goes Here
        },
        "de": {
            German Translation Goes Here
        }
    }
    
    You must give translations to all fields that you see.
  2. In html file of your manual locate div element with id of root:
    <div id="root" language="en"></div>
    Change language to the language key that you created in step 1.

Some languages may not work nicely with this manual, most notably in the graph. You may need to review how graph is implemented in Graph.js.

react-wgc-interactive's People

Contributors

kavinkul 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.