Skip to content

Instantly share code, notes, and snippets.

@bluekvirus
Last active September 25, 2017 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bluekvirus/d932d3904bd32084a703 to your computer and use it in GitHub Desktop.
Save bluekvirus/d932d3904bd32084a703 to your computer and use it in GitHub Desktop.
Koa (nodejs) app server dependencies (NPM)
{
"name": "appsrv",
"version": "1.0.0",
"description": "Blueprint for node web application server",
"main": "index.js",
"dependencies": {
"koa": "^0.21.0",
"koa-body": "^1.2.1",
"koa-compress": "^1.0.8",
"koa-csrf": "^2.3.0",
"koa-error": "^1.1.3",
"koa-generic-session": "^1.9.0",
"koa-logger": "^1.3.0",
"koa-passport": "^1.1.6",
"koa-ratelimit": "^2.1.0",
"koa-redis": "^1.0.0",
"koa-response-time": "^1.0.2",
"koa-router": "^5.1.2",
"koa-session": "^3.3.1",
"primus": "^3.2.0",
"sequelize": "^3.4.1"
},
"devDependencies": {
"supertest": "^1.0.1"
},
"scripts": {
"start": "node --harmony index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/bluekvirus/skeleton-appsrv.git"
},
"author": "Tim Lauv <bluekvirus@gmail.com>",
"license": "MIT",
"bugs": {
"url": ""
},
"homepage": ""
}
@bluekvirus
Copy link
Author

bluekvirus commented Oct 30, 2015

Since we don't really want to continue nodejs support as middleware after Stage.js v1, you are free to choose whatever middleware tech you like to write the web services. Use the above package.json if you still want to use Nodejs. Otherwise,

  • Django (Python 3)
  • Echo (Go)
  • Jersey (JVM 8)
  • Phoenix (Elixir/Erlang)
  • Laravel (PHP 7)
  • Kore (C 99)

All of the tech have similar routing mechanism, they very on Session (authx2, store) and ORM (model, validation, sanitization-in/out, events/hooks). Please also be aware of Deployment methods as the quality of this last step dictates the efficiency of the service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment