GithubHelp home page GithubHelp logo

briansunter / jack Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 61.62 MB

Blackjack in ReasonML

Home Page: https://briansunter.github.io/jack/

OCaml 84.59% HTML 3.44% JavaScript 10.91% CSS 0.83% C++ 0.23%

jack's Introduction

Reason React Simple Starter

Welcome Reason React Simple Starter! It's a project created to help you start your journey with React using ReasonML (duh). It uses webpack.

FAQ

What's ReasonML?

Reason is a typed programming language created by Facebook. Technically speaking it's a front-end for Ocaml. One of the most important features of Reason is powerful and safe type inference. That's what makes ReasonML an interesting alternative to JavaScript, TypeScript or Flow.

Why ReasonML?

You can read more about it here: https://reasonml.github.io/guide/what-and-why

Motivation

This starter project is meant to solve the most common problems when creating a new Reason project:

  • It comes with a predefined configuration which is ready to use
  • It allows you to use any JavaScript libraries through npm hassle-free
  • It doesn't create tons of temporary JS files when compiling

Getting started

Prerequisites

You'll need node and npm. This project was tested on node 8 and npm 5 but any newer should be just fine!

Installation

Download the repository and run npm install. This will install all dependencies and set everything up. You're ready to go!

Development

Run npm start. This command starts webpack-dev-server which in turn:

  • Compiles all Reason files thanks to bs-loader
  • Starts webpack in a watch mode
  • Runs a server at http://localhost:8081/

Effectively, whenever you make any changes in Reason sources, they get automatically compiled to JS โ€”ย webpack picks the new files and bundles into a single file main.js inside /bundledOutputs dir. This file is ready to be used in the browser (see /index.html).

Dev build

Run npm run build.

Production build

For faster and smaller bundle try running npm run prod.

Demo

https://mmiszy.github.io/reason-react-simple-starter/

jack's People

Contributors

typeofweb avatar briansunter avatar fattenap avatar

Watchers

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