freeblog

A lightweight blog framework

npm install freeblog
4 downloads in the last week
4 downloads in the last month

freeblog

A lightweight blog framework

Base

We use Node and MongoDB

Install and Run

  1. Download this package

     cd freeblog
    
  2. Install dependencies

     npm install
    
  3. Copy a config from config.example
    Modify some configuration inside as you need

     cp -r config.example config
    

    NOTICE: You should update the admin information

  4. Initialize database

     node setup
    
  5. Run it

     node app
    

    And then visit http://localhost:8008

Administration

Visit http://localhost:8008/admin
Post a request just with the form

Available REST API:

  • Posts
    • POST /api/posts
    • PUT /api/posts/:postid
    • DELETE /api/posts/:postid
  • Albums
    • POST /api/albums
    • PUT /api/albums/:albumid
    • DELETE /api/albums/:albumid
    • POST /api/albums/:albumid/pictures
    • PUT /api/albums/:albumid/pictures/:pictureid
    • DELETE /api/albums/:albumid/pictures/:pictureid
npm loves you