Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 909 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 909 Bytes

Introduction

Blog written by JavaScript.

Download KoalaBlog.js and its dependency

git clone git@github.com:LuckyKoala/koalajs-backend.git
npm install

Install RethinkDB server

Check documention on Official Site

Usage

Run RethinkDB server

Run command rethinkdb in the directory where you want to store your data.

Run KoalaBlog

chmod a+x index.js
./index.js -p 3000 #Run at port 3000.
./index.js -p 3000 --reset #Run at port 3000 and reset database.
./index.js -p 3000 --token '233' #Run at port 3000 and use token '233'.
./index.js --debug #Run with debug mode enabled.

Features

  • Control pane for creating, editing and deleting posts.
  • View all posts or detail of specified post.
  • RESTful API.
  • Simple CLI for setting port number and enabling debug mode.
  • Token is required for operation that will change database.