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.
- Host: GitHub
- URL: https://github.com/jondotsoy/bert-ci
- Owner: JonDotsoy
- Created: 2017-03-04T15:40:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-19T04:00:51.000Z (about 8 years ago)
- Last Synced: 2025-01-26T10:30:39.864Z (4 months ago)
- Topics: gulp, manager
- Language: JavaScript
- Homepage: https://github.com/JonDotsoy/bert-cli
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🍹 bert
A task manager inspired on Gulp.
## 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"