koa-blog-sample
koa-blog-sample copied to clipboard
Sample blog app that demonstrates the usage of koa
koa-sample 
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