Skip to content

Latest commit

 

History

History
55 lines (34 loc) · 1.96 KB

README.md

File metadata and controls

55 lines (34 loc) · 1.96 KB

ForgeJS Samples

This repository contains simple samples, demonstrating the capabilities of ForgeJS.

Setup

Prior to the sample execution you have to setup the plugins directory which contains ForgeJS plugins used into the samples

  1. Create a plugins directory in the root folder of the forgejs-samples local repository.
  2. Clone the ForgeJS Plugins project.
  3. Copy and paste the content of the forgejs-plugins repository into the plugins directory of the forgejs-samples local repository.

Then you have to setup the lib directory which contains the ForgeJS library and all required external libraries.

  1. Clone the ForgeJS project.
  2. Copy and paste the lib directory of the forgejs repository at the root of the forgejs-samples local repository.
  3. Build ForgeJS library with the help of the grunt min command (more informations here).
  4. Copy and paste the generated build directory into the previously pasted lib directory of the forgejs-samples local repository.
  5. Rename lib/build directory to lib/forge.

Test it

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.

Terms of Use - ForgeJS Sample Resources

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.