elife
Version:
Express life // jump start your web application with express
80 lines (59 loc) • 1.51 kB
Markdown
# elife extends express
Fast, unopinionated, minimalist web framework for [node](http://nodejs.org).
# Getting Started
## Installation
```bash
git clone https://github.com/DIMLEO/express-life.git <project name>
cd <project name>
npm install
```
## Configuration : app/bootstrap/app.js
```js
mode : "dev", /**** values : dev, prod ****/
port: 8080,
/*
* do not forget to change the port in the Host
*/
host : 'http://localhost:8080',
....
```
## Routing : app/routes.js
```js
module.exports = function(View, Env, Filre){
var routes = {};
routes.get = {
'/': function (req, res) {
res.send(View.make('index.html'));
}
};
routes.all = {
'/test': function (req, res) {
res.send(
View.make('test.blade', {
lname : "DIARRA",
fname : "Mamdou"
})
);
}
};
....
```
## index.js
```js
var boot = require('./app/bootstrap/boot');
//database creation and table is ready
$dbsm.ready(function(){
console.log('Database is Ready');
});
```
## Features
* Express Robust routing
* Laravel Blade template
* Blade esay extends
* Laravel eloquent ORM
* create database if not exists
* create table of model required
* auto-update table when model change
* lang manager
## License
[MIT](LICENSE)