Coder Social home page Coder Social logo

hoaixuimay / blogd Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 3.43 MB

Blogd is a Flat-File Blog with Redis inside that prioritizes simplicity and speed for busy developers

Smarty 0.41% HTML 5.35% CSS 0.31% JavaScript 0.72% PHP 0.02% Makefile 0.91% C 76.40% C++ 0.86% CMake 0.12% Python 0.05% Shell 0.58% Perl 2.90% M4 0.93% Groff 1.24% XSLT 0.01% Batchfile 0.02% Lua 0.20% Ruby 1.18% Tcl 7.79%

blogd's Introduction

What is Blogd?

Blogd is a custom Redis version for building Flat-File Blog which focus about performance, fast development to help busy developers to build a blogging system. Blogd is developed for Golr Engineering Blogging System

Demo

https://engineering.golr.xyz

Features

  • Redis with built-in simple HTTP server.
  • Support Mardown language to write posts with minimum effort required.
  • Auto creating pagination pages.
  • Can handle thousand of requests per seconds with Redis event-loop.

Source code layout

  • contents: contains html templates.
  • public: contains static files (css,js,images).
  • redis-3.2.5: contains the Redis custom version, written in C.

Dependencies

$ sudo apt-get install libpcre3-dev # For Debian/Ubuntu
$ sudo yum install pcre-devel # For RHEL/CentOS

Building Blogd

It is as simple as:

$ cd redis-3.2.5
$ make

Fixing build problems with dependencies or cached build options

$ cd redis-3.2.5
$ make distclean

Running Blogd

To run Redis with the default configuration just type:

$ cd redis-3.2.5
$ ./src/redis-server redis.conf

Addition configuration

Change default configuration in "redis-3.2.5/redis.conf" file

content-dir "../contents" # The path of content dir
public-dir "../public" # The path of public dir
per-page 10 # Limit posts per page
reload-content-query "secret-reload" # HTTP query param for reloading content (ex: http://blogd.local/?secret-reload)
markdown-compile 0 # Using or not mardown language in templates

Notes

  • Currently Blogd only support for Linux (specially on Ubuntu & Centos)
  • It should be run behind Nginx in production for security.
  • Blogd rewrite the way Redis handles connections so we cannot use Redis utilities: redis-benchmark, redis-cli...

blogd's People

Contributors

lehoangduc avatar

Watchers

James Cloos avatar Hoai Pham avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.