UNPKG

trek-cli

Version:

Command line tool for Trek's application

14 lines (9 loc) 212 B
import Trek from 'trek'; const app = new Trek(__dirname); app.get('/', function* (next) { this.body = 'Hello Trek.js!'; }); app.on('error', function (err, context) { app.logger.error(err); }); app.run();