Coder Social home page Coder Social logo

reason-workshop's Introduction

Reason Workshop

If you are on windows, or any non-mainstream linux / OSX, please download virtualbox and set it up before arriving. I will provide a vbox image with the latest version of this repo set up, and with some text editors set up inside it for the day.

This workshop runs a step by step introduction to applying the language to building the game Tic-Tac-Toe, using Reason and React.

Please make sure you have cloned this repository and run all the installation instructions before coming to the workshop. If any instructions are unclear, or if you're having trouble getting set up, please email me at bassjacob @ gmail and I'll make sure to help you.

Requirements

  • NodeJS >= v7.10.0 and npm >= 4 Installation Instructions. Do not use NodeJS 8 or npm 5, they are broken currently.
  • Install refmt, ocamlmerlin and ocamlmerlin-reason according to reasonml js workflow. (basically just run: npm install -g git://github.com/reasonml/reason-cli.git#beta-v-1.13.5)
  • Please follow the reasonml tooling instructions to set up your text editor. At time of writing this, the following editors are supported:
    • vim / neovim
    • emacs
    • atom
    • vscode

Installation Instructions

# Install and set up the requirements above

# Clone this repository

git clone https://github.com/bassjacob/reason-workshop

# Change directory into the cloned folder

cd reason-workshop

# Install the project dependencies

npm i

Getting Started

Before attending the workshop!!!

Once you have the repository cloned and the dependencies installed, please run the following command to test the installation. From inside the root of the repository (the folder you just cloned into) run the following command:

npm run watch

You should see a lot of output on your terminal, and after a few seconds you should be able to visit localhost:8080 and see a webpage on the screen.

If you see anything different, or the command fails for any reason, please take a screenshot and contact me.

Workshop

To run the workshop, run npm run watch. In a browser navigate to http://localhost:8080/problems/1 and follow the instructions from there.

This project requires two ports to be free on your machine, 3000 and 8080. You can override these with the setting SERVER_PORT and WEBPACK_PORT like so:

# on linux / osx
SERVER_PORT=3000 WEBPACK_PORT=8080 npm run watch;

Contact Me

Email: bassjacob @ gmail

Twitter: @bassjacob

Discord: Join the Reason Discord channel

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.