teil
v1.0.0-alpha
Published
A neat wrapper for Express.js API's.
Readme
Teil
A neat wrapper for Express.js API's.
This is a work in progress. However, the teil package is published at NPM
(mainly for me to use in the 2019 Nodeknockout hackathon ;)). So to try it out,
you can simply do:
npm install teilThen you can create a controller file at ./controllers/hello.js:
module.exports = {
'GET world'({ send }) {
send('Hello, World!')
}
}And start teil, it will automatically create a /api/hello/world route for
you:
npx teilThat's it! Now you can visit http://localhost:3333/api/hello/world and you
will see Hello, World!.
Check out the ./example folder for more features, you can start the example
by running npm run example.
To be continued...
