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 …

License

5orenso/simple-blog

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
February 2, 2023 23:41
July 23, 2021 11:05
September 16, 2021 11:06
db
August 12, 2019 09:11
etc
May 16, 2015 15:59
lib
February 1, 2023 19:32
February 5, 2023 21:17
January 28, 2023 23:34
June 2, 2016 14:38
March 3, 2015 22:05
June 18, 2016 20:09
August 23, 2014 12:29
July 23, 2021 15:36
September 15, 2021 15:13
December 29, 2022 15:53
September 20, 2014 01:04
September 20, 2014 01:04
September 26, 2014 17:05
September 26, 2014 14:36
July 21, 2015 11:56
September 23, 2021 10:52

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-themusher.no.service
$ sudo vim /etc/systemd/system/simple-blog-themusher.no.service
$ sudo service simple-blog-themusher.no start
$ ps aux | grep server

https://themusher.no/send-magic-link https://themusher.no/admin https://themusher.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

Stars

Watchers

Forks

Packages

No packages published