DJviolin / template-literals

Node.js template literals as viewing engine test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

template-literals

Git pre-config

$ git config user.email "you@example.com"
$ git config user.name "Your Name"

http://blog.npmjs.org/post/118810260230/building-a-simple-command-line-tool-with-npm

RUN

run the app on linux:
 > $ DEBUG=app:*,koa-router:*,koa-views:* npm start

run the app on windows:
 > SET DEBUG=app:*,koa:*,koa-router*,koa-views* & npm start
 > SET DEBUG=app:*,koa:* & npm start

Eslint:
 > npm run-script --silent eslint

Benchmark

$ ab -k -n 1000 -c 10 http://127.0.0.1:3000/
$ wrk -c 64 -d 30s http://127.0.0.1:3000/

Sharong logic:

http://stackoverflow.com/questions/3225251/how-can-i-share-code-between-node-js-and-the-browser

About

Node.js template literals as viewing engine test


Languages

Language:JavaScript 88.0%Language:Shell 8.9%Language:PLpgSQL 2.7%Language:Batchfile 0.2%Language:CSS 0.1%