Skip to content

Latest commit

 

History

History

1-node

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

1-node


This project shows how to create a simple Node.js app with Melange. When executed, it will print "Hello world!!" on the console.

The code in src/hello.ml is:

let () = Js.log ("Hello " ^ World.name ^ "!!")

To set up the environment to work with it, you will need to install opam and Node.js.

After that, run these commands to build the project:

$ cd example/1-node
$ make init
$ make build
$ node src/dist/src/hello.js
Hello world!!