This repository contains simple samples, demonstrating the capabilities of ForgeJS.
Prior to the sample execution you have to setup the plugins
directory which contains ForgeJS plugins used into the samples
- Create a
plugins
directory in the root folder of theforgejs-samples
local repository. - Clone the ForgeJS Plugins project.
- Copy and paste the content of the forgejs-plugins repository into the
plugins
directory of theforgejs-samples
local repository.
Then you have to setup the lib
directory which contains the ForgeJS library and all required external libraries.
- Clone the ForgeJS project.
- Copy and paste the
lib
directory of theforgejs
repository at the root of theforgejs-samples
local repository. - Build ForgeJS library with the help of the
grunt min
command (more informations here). - Copy and paste the generated
build
directory into the previously pastedlib
directory of theforgejs-samples
local repository. - Rename
lib/build
directory tolib/forge
.
Run a server in the root folder of this directory. The index contain a list of available samples.
If you have Python installed, you can either run:
python -m SimpleHTTPServer
OR
python -m http.server
If you have Node.js installed, you can run these commands to install http-server
, a simple zero-configuration command-line http server.
npm install http-server -g
http-server -p 8000
You can then browse your localhost.
All audio, image and video files are the property of GoPro, Inc.
You may not use the material for commercial purposes.
All other specific copyrights are available in each sample's directory.