magicjs
0.0.36 • Public • Published MagicJS
MagicJS is little Node.js Framework.
Steps install framework (example simple web app).
'use strict';
const MagicJS = require('magicjs');
const Router = require('magicjs');
const Magic = Router();
const MagicRouter = Magic.push;
MagicRouter('/hello', function (req, res, next) {
res.send('Hi there!');
});
MagicJS.listen(3000);
MagicJS.router(Magic);
MagicJS.offline(false);
npm install --save magicjs
Docs
Structure folder is:
- Assets (Style Files)
- Controllers eg.(Home.js, 404.js)
- Model (DB)
- Views (index.html, home.html)
Coming soon add new changes framework
Package Sidebar
Install
Weekly Downloads