ibird
Version:
A lightweight and flexible web development framework.
77 lines (45 loc) • 1.5 kB
Markdown
English | [简体中文](https://zhuanlan.zhihu.com/p/30961351)
# ibird
[](https://npmjs.org/package/ibird)
[](https://travis-ci.org/yinfxs/ibird)
[](https://npmjs.org/package/ibird)
[](https://david-dm.org/yinfxs/ibird)
A lightweight and flexible web development framework.
## Getting Started
### Prerequisites
Install ibird from npm
With yarn:
```sh
yarn add ibird
```
or alternatively using npm:
```sh
npm install --save ibird
```
### Writing Code
We can put this code in a file named `index.js`
```js
const app = require('ibird').newApp();
// response
app.get('/', ctx => {
ctx.body = `Hello ibird.`;
});
app.play();
```
If you run this with:
```bash
$ node index.js
```
You should see the ibird response printed out:
```bash
$ Listen and serve on 0.0.0.0:3000
```
Congratulations - You've just created an application using ibird!
### Next Steps
We prepared a [wiki page](https://github.com/yinfxs/ibird/wiki). You can find tons of useful things there.
### Contributing
We actively welcome pull requests.
### Changelog
Changes are tracked as [GitHub releases](https://github.com/yinfxs/ibird/releases).
### License
ibird is [Apache-2.0-licensed](https://github.com/yinfxs/ibird/blob/master/LICENSE).