https://github.com/openlayers/ol3-unleashed
Slideshow
https://github.com/openlayers/ol3-unleashed
Last synced: 8 months ago
JSON representation
Slideshow
- Host: GitHub
- URL: https://github.com/openlayers/ol3-unleashed
- Owner: openlayers
- Created: 2014-09-09T23:00:27.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-19T15:14:09.000Z (over 11 years ago)
- Last Synced: 2024-04-14T22:48:25.575Z (over 1 year ago)
- Language: JavaScript
- Size: 9.1 MB
- Stars: 10
- Watchers: 9
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenLayers 3 Unleashed
## Set up
Dependencies pulled in with [npm](https://npmjs.org/).
After cloning the repo (and installing Node):
cd ol3-unleashed
npm install
Now you can view the slides by loading `index.html` in a browser.
## Examples
The examples all share the same basic layout, so they are built from templates. The `npm install` step above builds all examples (and more) and puts everything in the `.grunt/self` directory. To facilitate rebuilding of examples during development, a simple server and watch task are included. This can be fired up with the following:
npm start
This will build the examples, copy over files that don't need pre-processing, start a static file server rooted in the `.grunt/self` directory, and launch a file watcher task that will re-build/copy when files change.
While this task is running, the slideshow is available at http://localhost:9001/ and examples are at http://localhost:9001/examples/. When the slides are deployed, the examples will have the same relative path to the slides (e.g. slides can link to examples with './examples/hello-world.html').
## Deploying
To publish the slides (with dependencies) to the `gh-pages` branch on GitHub, run the following:
npm run deploy
## Credits
Credits to [reveal.js](http://lab.hakim.se/reveal-js/) for the slick presentation software.