Giter Site home page Giter Site logo

js_of_ocaml_exercices's Introduction

js_of_ocaml_exercices

List of exercices to learn how to use js_of_ocaml.

What's js_of_ocaml ?

From Ocsigen website:

Js_of_ocaml is a compiler of OCaml bytecode to Javascript. It makes it possible
to run Ocaml programs in a Web browser.

and from the Wikipedia page describing the Ocsigen project:

A Javascript compilator from OCaml to Javascript named js_of_ocaml. It makes it
possible to run OCaml programs in a Web browser, with portability and without
having to install anything. The compilator takes as input language an OCaml
bytecode, that is a compiled OCaml program. It allows you to use existing OCaml
libraries whose source code isn't available.

How does it work ?

This repository contains a list of exercices to teach you how to use js_of_ocaml.

After learning how to compile an ocaml file into a Javascript file, a Makefile will be available for each next exercices (see this repository). An explanation will be given in the same exercice where you learn how to compile ocaml into js.

List of exercices

  • Ex00: Compile your ml files into Javascript scripts.
  • Ex01: Modify the title of an HTML page.
  • Ex02: An alert box with Hello world.
  • Ex03: Show a confirm box and get response.
  • Ex04: Add dynamically html nodes such as paragraph or div.
  • Ex05: Create the Materialize Starter Template in OCaml.
  • Ex06: Event handler: execute code when page is loaded.

js_of_ocaml_exercices's People

Contributors

dannywillems avatar

Stargazers

Michael Hilton avatar Xavier Van de Woestyne 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.