0.16.0 • Published 6 years ago

nebulous-server v0.16.0

Weekly downloads
17
License
MIT
Repository
gitlab
Last release
6 years ago

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 views
  • static/ - your static/public files
  • content/ - 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.pug

All 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-started

And in another terminal:

<div><p>Welcome.</p></div>

You just made your first Nebulous CMS website.

Links

WebsiteTwitter
ProjectNebulous CMS@NebulousCMS
CompanyNebulous Design@NebulousDesign
AuthorAndrew Chilton@andychilton

License

ISC.

(Ends)

0.16.0

6 years ago

0.15.0

6 years ago

0.14.0

6 years ago

0.13.0

6 years ago

0.12.0

6 years ago

0.11.0

6 years ago

0.10.0

6 years ago

0.9.0

6 years ago

0.8.0

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago