0.16.0 • Published 7 years ago
nebulous-server v0.16.0
nebulous-server
Nebulous web server to serve a Nebulous Core instance.
See the Nebulous CMS website docs on how the Nebulous Server works, and on how to use this package programmatically.
Website Layout
A website is just three dirs named:
views/- your PugJS viewsstatic/- your static/public filescontent/- your Markdown and JSON files
So let's create a new website and serve it on localhost:3000.
$ cd app
$ mkdir views static content
$ echo '{"scripts":{"start":"nebulous-server"}}' > package.json
$ npm install nebulous-server
$ echo 'Welcome.' > content/index.md
$ echo '{"title":"Hello, World!"}' > content/index.json
$ echo 'div !{page.html}' > views/page.pugAll you need to do is make sure a static/favicon.ico exists too!
level=info ts=1526520464699 evt=nebulous
level=info ts=1526520465736 port=3000 evt=server-startedAnd in another terminal:
<div><p>Welcome.</p></div>You just made your first Nebulous CMS website.
Links
| Website | ||
|---|---|---|
| Project | Nebulous CMS | @NebulousCMS |
| Company | Nebulous Design | @NebulousDesign |
| Author | Andrew Chilton | @andychilton |
License
ISC.
(Ends)