Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mustardamus/teil
Prototype API's blazing fast
https://github.com/mustardamus/teil
Last synced: about 1 month ago
JSON representation
Prototype API's blazing fast
- Host: GitHub
- URL: https://github.com/mustardamus/teil
- Owner: mustardamus
- Created: 2019-03-13T17:47:21.000Z (almost 6 years ago)
- Default Branch: develop
- Last Pushed: 2023-01-04T21:40:12.000Z (almost 2 years ago)
- Last Synced: 2024-11-01T19:36:45.998Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://mustardamus.github.io/teil/
- Size: 1.51 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-blazingly-fast - teil - Prototype API's blazing fast (JavaScript)
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 teil
```Then 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 teil
```That'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...