Table of Contents
License
HipHop.js, Synchronous Multitier JavaScript Reactive Programming
Copyright (c) 2015-2021 INRIA
Bug descriptions, user reports, comments, suggestions and
pull requests are welcome. Send them to
https://github.com/manuel-serrano/hiphop.git
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. More precisely,
The server, the compiler, and the tools are distributed under the
terms of the GNU General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA.
Binary distributions
Precompiled HipHop.js distributions are available.
Debian/Raspberry
A repository is available. To use it, add the following
to your apt
path:
deb [trusted=yes] http://hop.inria.fr/linux/Debian buster hop
The Debian packages are all installed in the /opt/hop
directory.
Ubuntu
An Ubuntu repository is available. To use it, add the following
to your apt
path:
deb [trusted=yes] http://hop.inria.fr/linux/Ubuntu focal hop
The Ubuntu packages are all installed in the /opt/hop
directory.
Homebrew
Homebrew users (MacOS X), can use the pre-built version by using:
$ brew tap homebrew/hop https://gitlab.inria.fr/mserrano/hopbrew.git
$ brew install homebrew/hop/bigloo-latest
Source code installation
Hiphop.js installation
Hiphop.js requires Bigloo and Hop.js to works.
To install it:
./configure && make && sudo make install
You can also install it locally (without root access) with:
./configure && make && sudo make install-local
Git
Hop.js can be forked at
https://github.com/manuel-serrano/hiphop.git
Docker installation
- Build the Hop image following these instructions.
- Build the HipHop image by downloading the
hop-1.1.2.dockerfile
script and by issuing the following docker command:docker build -f hop-1.1.2.dockerfile -t hop .
Note: If you already have installed Hop or HipHop within docker, you might find useful to remove the old image first. This can be achieved with:
$ docker container prune
$ docker rmi `docker images | grep hop | awk '{print $3}'`
Running the image
Once the docker is built, the image can be executed using the
hop.docker
that can be found
here. This is
recommended on Linux and MacOS.
The docker image can also be executed directly. Let's consider that
$HOME/myApp
is a directory containing your Hop.js application, and
the file main.js
the entry point, implementing Hop.js service
myService
.
docker run -d -p 8080:8080 -v $HOME/myApp:/app hop /app/main.js
Open your browser in the host system, and go to
http://localhost:8080/hop/myService
.