Some reveal.js features, like external Markdown, require that presentations run from a local web server. The following instructions will set up such a server as well as all of the development tasks needed to make edits to the reveal.js source code.
-
Install Node.js (10.0.0 or later)
-
Clone the reveal.js repository
$ git clone https://github.com/hakimel/reveal.js.git
-
Move to the reveal.js folder and install dependencies
$ cd reveal.js && npm install
-
Serve the presentation and monitor source files for changes
$ npm start
-
Open http://localhost:8000 to view your presentation
Development Server Port
The development server defaults to port 8000. You can use the port
argument to switch to a different one:
npm start -- --port=8001
from
https://revealjs.com/installation/#full-setup
项目地址:
https://github.com/hakimel/reveal.js