elife
v1.0.7
Published
Express life // jump start your web application with express
Downloads
20
Maintainers
Readme
elife extends express
Fast, unopinionated, minimalist web framework for node.
Getting Started
Installation
git clone https://github.com/DIMLEO/express-life.git <project name>
cd <project name>
npm install
Configuration : app/bootstrap/app.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
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
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