p-baleine / koa-blog-sample

Sample blog app that demonstrates the usage of koa

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

koa-sample Build Status

Sample blog app that demonstrates the usage of koa.

Development

Currently PostgreSQL is only supported.

Clone repository:

$ git clone https://github.com/p-baleine/koa-blog-sample.git && cd koa-blog-sample

koa requires node 0.11.9 or higher (https://github.com/koajs/koa#installation), with nvm, you can switch to node 0.11:

$ nvm use

Note that when I try node 0.11.9 installed by nvm, the installed binary was not enabled openssl and I had to install node 0.11.9 with source option:

$ nvm install -s 0.11

Configure database:

$ cp config/default.sample.json config/default.json # edit your configuration

Setup:

$ npm install && make

seed user:

$ make seed

Start app:

$ npm start

And access top:

http://localhost:3000/

or login as admin:

http://localhost:3000/admin/sessions/new

Test

$ make test

About

Sample blog app that demonstrates the usage of koa


Languages

Language:JavaScript 94.2%Language:CSS 5.8%