Code Monkey home page Code Monkey logo

mongoblog's Introduction

///////////////////////////////////////////////////////////////////////
//   								     //
//   MongBlog - Superfast simple blogging platform                   //
//   Readme                                                          //
//   (c) 2010 Michael Cullen http://cullen-online.com                //
//   Released under the BSD licence as define in the                 //
//   accompanying LICENCE file. Please read it :-)                   //
//                                                                   //
///////////////////////////////////////////////////////////////////////

To Build from git:

run ./toolconfig.sh

then continue as below:

To build from tarball:

You need libMongoClient installed, and relevant libboost versions.
It's basically the standard install/configure step, except you set the bin dir
to the location you want the cgi to be in.

./configure --bindir=/path/to/cgi
make
(then as root)
make install

if you get errors about the shared object not being found,
try running ldconfig as root.

Configuring:
copy the folder mbTemplates to one level above the executable, then:

cd /path/to/installed/cgi
./MongoDbConfig

and answer the questions.

Apache Fun
===============

This program now has the ending .cgi which means that you can now use an AddType declaration
instead of a scriptalias. This is important as otherwise any external images or js files
would have been difficult to include.

Security
===============

I strongly recommend adding the included htaccess file next to the CGI because otherwise the config program
will be runnable from the internet, which causes the webserver to lock up due to it not being a 
CGI program, and waiting for input. The htaccess file solves this, and makes nicer URLs as well
(like /blog/post/post-id/ to access a post)

Structure
============
The main work is done in the Blog class and the StorageEngine class. 

mongoblog's People

Contributors

mich181189 avatar

Stargazers

 avatar Tom Mulder avatar

Watchers

 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.