Using 'reveal-ck serve'
reveal-ck has two main commands: generate and serve.
generate builds slides.
serve is a longer running and more complicated process:
- It starts up a webserver to serve up your slides
- It listens for file system changes to rebuild your slides
- It reloads your browser when slides are regenerated
It's expected that most users will usually just run reveal-ck serve.
However, for testing purposes, we can run reveal-ck serve in a mode where it starts up and shuts down after a few moments. This allows us to quickly verify that things are looking good.
Scenario: Starting up reveal-ck serve
- Given a file named "
slides.md" with:# reveal-ck serve - When I temporarily start reveal-ck serve with host "
localhost" - Then the exit status should be 1
- And the output should contain "
[ reveal-ck ] Serving up slide content in 'slides/'." - And the output should contain "
[ reveal-ck ] Open your browser to 'http://localhost" - And the output should contain "
[ reveal-ck ] Press CTRL-C to stop." - And the output should contain "
[ reveal-ck ] Getting Ready to Rebuild Slides." - And the output should contain "
[ reveal-ck ] Starting Webserver." - And the output should contain "
[ reload ] Guard is now watching"
Scenario: Starting up reveal-ck serve and specifying a host
- Given a file named "
slides.md" with:# reveal-ck serve - When I temporarily start reveal-ck serve with host "
0.0.0.0" - Then the exit status should be 1
- And the output should contain "
[ reveal-ck ] Open your browser to 'http://0.0.0.0"
Source: features/serve.feature at commit 3acf26e6, Reveal Ck (MIT license).