Cheerp in itself has no dependencies, but the recommended workflow and the tutorials make use of:
- a command line prompt
- an Http server
- a browser
How to have everything up and running (useful not just for Cheerp but also generally) in your developer environment of choice?
Command line prompt
On Linux or Mac OS X, open the Terminal of your choice. On Windows, you can use the command prompt (Start - type ‘cmd’) or PowerShell (Start - type ‘powershell’).
For the purpose of the tutorials, the main cosmetic difference between running in a Unix command line and a Windows command line is the
/. Use the one your system impose.
Node.js installation instructions
Linux users could either install from source or use a packet manager for their distribution.
Windows and macOS users can direcly download from the official website.
Whatever the case running
nodejs --version from the command line should confirm whether it’s installed properly or not.
An http server
Since you have already Nodejs (right?), using Nodejs packet manager
npm it’s easy to install the appropiately named
Visit its website, and then install it with:
npm install http-server -g
And then test it with:
Other http servers will also work, just change http-server to invoke your preferred solution.
Knowing how to launch it from command line could be useful, for example
firefox file.html opens
file.html in a new tab.