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.
- My personal blog: litt.no
- An Apple help site in Norwegian: lovetolearnmore.no
- My coffe&code site: kaffeogkode.no
---------------- 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.
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.
: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 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.
More to come :)
$ 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/
$ npm install -g npm-check-updates
$ ncu --upgrade --upgradeAll
$ npm install --no-optional
$ cp ../simplemde-markdown-editor/dist/simplemde.min.js ./template/global/js/.
$ cp ../simplemde-markdown-editor/dist/simplemde.min.css ./template/global/css/.
> db.copyDatabase('simpleBlog', 'simpleBlogLittno')
> use simpleBlog;
> db.dropDatabase();
$ 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