An open API service indexing awesome lists of open source software.

https://github.com/jondotsoy/bert-ci

🍹 A task manager inspired on Gulp.
https://github.com/jondotsoy/bert-ci

gulp manager

Last synced: about 2 months ago
JSON representation

🍹 A task manager inspired on Gulp.

Awesome Lists containing this project

README

        

# 🍹 bert
A task manager inspired on Gulp.

![](https://media4.giphy.com/media/3o6Zteg4iAACKsh5sI/giphy.gif)

## On Develop

Features:
- [CLI](https://github.com/JonDotsoy/bert-cli)
- [ ] System
- [x] Router
- [ ] Task Control
- [ ] API Task
- [ ] Relation with local folder
- [ ] Process manager

## Framework
**Estructure of directory by features.**

- app/
- **[feature]**/
- [router.js](#appfeaturerouterjs): The router configs
- [exports.router()](#exportsrouter-function): General router configuration.
- [exports.api()](#exportsapi-function): Api router configuration.

### app/[feature]/router.js: [exports][node-modules] (Object)

#### exports.router: (*[Middleware][express-middleware]|[Router][express-router]*)
The general router to render by page.

**Example:**

```javascript
// /app/hello/router.js
exports = module.exports = {
router: require('express')
.Router()
.get('/hello', (req, res) => {
res.render('hello', {"hello":'world'})
})
}
```

```
GET /api/hello


Hello world

Hello world!!

```

#### exports.api: (*[Middleware][express-middleware]|[Router][express-router]*)
The router to api, use the base `/api`.

**Example:**

```javascript
// /app/hello/router.js
exports = module.exports = {
api: require('express')
.Router()
.get('/hello', (req, res) => {
res.json({
ok: true,
hello: 'world'
})
})
}
```

```
GET /api/hello

{
"ok": true,
"hello": "world"
}
```

[express-middleware]: http://expressjs.com/en/api.html#middleware-callback-function-examples "Middleware callback function examples"
[express-router]: http://expressjs.com/en/api.html#router "Router"
[node-modules]: https://nodejs.org/api/modules.html "Modules"