| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Example of a REST API For Hack Lang using Hack Router
To install HHVM and Hack, see installation
composer install
hhvm -c config.ini -m server -p 8080
NOTE: If you are using Linux, you need to edit the configuration file to replace any instance of /usr/local/etc/hhvm/ with /etc/hhvm/
The server will then be running on port 8080
GET / : returns a message about a get request to the homepage
POST / : returns a message about a post request to the homepage
GET /example/{param} : returns a message with the param
| Back | FazBrowse Home | New Git URL |