3 ms·
I have a scaffold for Node + Koa (microframework) + Postgres + Twitter Bootstrap + Nunjucks (templating): - Demo: https://koa-skeleton.danneu.com/ https://koa-
by danneu 11y ago
I have a scaffold for Node + Koa (microframework) + Postgres + Twitter Bootstrap + Nunjucks (templating):
- Demo: https://koa-skeleton.danneu.com/ https://koa-skeleton.danneu.com/
- Source: https://github.com/danneu/koa-skeleton https://github.com/danneu/koa-skeleton
- rodrigogs 11y agoAwesome! Staring...
- nailer 11y agoStop staring and star it already.
- pacomerh 11y agoCurious to see why you recommend Koa vs Express?. Looks simpler at first but if you can elaborate that would be great.
- Killswitch 11y agoKoa is the successor of Express, written by Express creator, TJ. I like it because generator workflow makes writing apps better since we can yield promises. Code is much cleaner. app.get('/', function * () { this.body = yield User.all() }) vs app.get('/', function (req, res) { User.all(function (err, users) { if (err) throw err res.end(users) }) })
- icpmacdo 11y agoThis right here seems like the best trade off between accounting for technical debt in the future and having quick development in the early stages of a business/startup.