See the [TodoMVC app template](https://github.com/tastejs/todomvc-app-template).
## License
<arel="license"href="http://creativecommons.org/licenses/by/4.0/deed.en_US"><imgalt="Creative Commons License"style="border-width:0"src="http://i.creativecommons.org/l/by/4.0/80x15.png"/></a><br/>This <spanxmlns:dct="http://purl.org/dc/terms/"href="http://purl.org/dc/dcmitype/InteractiveResource"rel="dct:type">work</span> by <axmlns:cc="http://creativecommons.org/ns#"href="http://sindresorhus.com"property="cc:attributionName"rel="cc:attributionURL">Sindre Sorhus</a> is licensed under a <arel="license"href="http://creativecommons.org/licenses/by/4.0/deed.en_US">Creative Commons Attribution 4.0 International License</a>.
Open `index.html` in your browser to try the application.
If you want to build the application on your own:
1. Install Js_of_ocaml and the required dependencies. An easy way is to use [opam](https://opam.ocaml.org/). After having installed `opam`, follow these steps:
- If you use `opam` for the first time, you have to initialize it:
```sh
> opam init
> eval `opam config env`
```
This will create a `.opam` directory in your home.
- You need a very recent version of OCaml compiler. First check the current version used by `opam`:
```sh
> opam switch
-- -- 3.11.2 Official 3.11.2 release
-- -- 3.12.1 Official 3.12.1 release
-- -- 4.00.0 Official 4.00.0 release
-- -- 4.00.1 Official 4.00.1 release
-- -- 4.01.0 Official 4.01.0 release
-- -- 4.02.0 Official 4.02.0 release
-- -- 4.02.1 Official 4.02.1 release
-- -- 4.02.2 Official 4.02.2 release
system C system System compiler (4.02.1)
```
The `C` letter shows the current compiler. Here it's a 4.02.1 version installed at a system level (ie in `/usr/local/bin/` for instance). We can see that a more recent version is available (4.02.2). So we will install it with `opam switch 4.02.2`. This won't remove the system compiler as `opam` will install the files in your `.opam` directory.
```sh
> opam switch 4.02.2
> eval `opam config env`
```
You can use again `opam switch` to check that the current compiler is now OCaml 4.02.2:
```sh
> opam switch
-- -- 3.11.2 Official 3.11.2 release
-- -- 3.12.1 Official 3.12.1 release
-- -- 4.00.0 Official 4.00.0 release
-- -- 4.00.1 Official 4.00.1 release
-- -- 4.01.0 Official 4.01.0 release
-- -- 4.02.0 Official 4.02.0 release
-- -- 4.02.1 Official 4.02.1 release
4.02.2 C 4.02.2 Official 4.02.2 release
system I system System compiler (4.02.1)
```
- Let's now install Js_of_ocaml and all the required dependencies. As Js_of_ocaml is a part of a larger project named Eliom, we will simply install this package:
```sh
> opam install eliom
```
- The final and important step is to be sure to have the latest version of Eliom and its dependencies. So ask to `opam` to upgrade the packages if needed:
```sh
> opam update
> opam upgrade
````
Congratulations, you now have all the required packages! We can now build the application.
2. Compile the `todomvc.ml` file to OCaml bytecode with the `ocamlbuild` command:
<ahref="examples/scalajs-react/"data-source="https://github.com/japgolly/scalajs-react"data-content="Facebook's React on Scala.js.">Scala.js + React</a>
</li>
<liclass="routing">
<ahref="examples/js_of_ocaml/"data-source="http://ocsigen.org/js_of_ocaml/"data-content="Js_of_ocaml is a compiler of OCaml bytecode to Javascript.">js_of_ocaml</a>
"description":"jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.",