Skip to content

A very simple blog server written in Node.js with support for Markdown files, images, embedded content and all other stuff you would expect from a blog. Base idea of this server is to keep it as lean as possible. There should be no hard admin interface or other stuff getting in the way of publishing content. Search capabilities is added with an …

master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
app
 
 
bin
 
 
 
 
 
 
db
 
 
etc
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

A very simple blog server

Join the chat at https://gitter.im/5orenso/simple-blog Build Status Coverage Status GitHub version

Written in Node.js with support for Markdown files, images, embedded content and all other stuff you would expect from a blog.

Base idea of this server is to keep it as lean as possible. There should be no hard admin interface or other stuff getting in the way of publishing content.

Search capabilities is added with an ElasticSearch integration adapter.

Sites using simple-blog

This is how it works

    ----------------   dropbox      -------------     -------
   | who-am-i.md    |  auto sync   | Simple blog |   | Nginx |
   | hello-blog.md  | -----------> | server      |-->|   or  |
   | ...            |              | (Amazon)    |   | Cloud-|  web page    -----------
    ----------------               |             |   | Front | ----------> | browser   |
    ----------------   dropbox     |             |   |       |             | or mobile |
   | image.jpg      |  auto sync   |             |   |       |              -----------
   | image2.jpg     | -----------> |             |   |       |
    ----------------               |             |    -------
                                    -------------
    ----------------                      |
   | ElasticSearch  | --------------------
    ----------------

  • All content is worked on locally on your computer, phone og tablet. You can even work when offline.
  • Everything is synced to the server by your Dropbox setup.
  • Administration of users is done with your Dropbox sharing.

Read more about the simple blog server.

Prerequisite

Howto publish content

Content are located in the content folder.
Articles are located in the article folder and sub folders.
Images are located in the images folder and sub folders.
Simply save your article in the correct folder and voila, it's published.

Example blog post

 :title My blog post title
 :teaser Read all about it!
 :body
 ## Hello world!

 This is my first blog post.

That's all there is to it.

See the wiki page for more details.

Markdown is used for writing.

Markdown is intended to be as easy-to-read and easy-to-write as is feasible.

Readability, however, is emphasized above all else. A Markdown-formatted document should be publishable as-is, as plain text, without looking like it’s been marked up with tags or formatting instructions.

Work in progress

More to come :)

Read more about:

Howto setup service

$ sudo cp /etc/systemd/system/simple-blog-litt.no.service /etc/systemd/system/simple-blog-kaffeogkode.no.service
$ sudo vim /etc/systemd/system/simple-blog-kaffeogkode.no.service
$ sudo service simple-blog-kaffeogkode.no start
$ ps aux | grep server

https://kaffeogkode.no/send-magic-link https://kaffeogkode.no/admin https://kaffeogkode.no/v2/

Howto upgrade modules

$ npm install -g npm-check-updates
$ ncu --upgrade --upgradeAll
$ npm install --no-optional

Howto upgrade editor

$ cp ../simplemde-markdown-editor/dist/simplemde.min.js ./template/global/js/.
$ cp ../simplemde-markdown-editor/dist/simplemde.min.css ./template/global/css/.

Howto move database

> db.copyDatabase('simpleBlog', 'simpleBlogLittno')
> use simpleBlog;
> db.dropDatabase();

Howto move database

$ node ./bin/import-article-to-mongo.js /srv/config/simple-blog/config-litt.no.js
$ node ./bin/import-category-to-mongo.js /srv/config/simple-blog/config-litt.no.js
$ node ./bin/import-image-to-mongo.js /srv/config/simple-blog/config-litt.no.js

$ node ./bin/import-article-to-mongo.js /srv/config/simple-blog/config-kaffeogkode.no.js
$ node ./bin/import-category-to-mongo.js /srv/config/simple-blog/config-kaffeogkode.no.js
$ node ./bin/import-image-to-mongo.js /srv/config/simple-blog/config-kaffeogkode.no.js

$ node ./bin/import-article-to-mongo.js /srv/config/simple-blog/config-zu.no.js
$ node ./bin/import-category-to-mongo.js /srv/config/simple-blog/config-zu.no.js
$ node ./bin/import-image-to-mongo.js /srv/config/simple-blog/config-zu.no.js

$ node ./bin/import-article-to-mongo.js /srv/config/simple-blog/config-lovetolearnmore.no.js
$ node ./bin/import-category-to-mongo.js /srv/config/simple-blog/config-lovetolearnmore.no.js
$ node ./bin/import-image-to-mongo.js /srv/config/simple-blog/config-lovetolearnmore.no.js

Other Resources

About

A very simple blog server written in Node.js with support for Markdown files, images, embedded content and all other stuff you would expect from a blog. Base idea of this server is to keep it as lean as possible. There should be no hard admin interface or other stuff getting in the way of publishing content. Search capabilities is added with an …

Resources

License

Packages

No packages published
You can’t perform that action at this time.