magicjs
v0.0.36
Published
Magic.JS is Node.js Framework
Downloads
19
Readme
MagicJS
MagicJS is little Node.js Framework.
Steps install framework (example simple web app).
- Create a file launch.js
touch launch.js- Add in launch.js :
'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);
- Install dependencies
npm install --save magicjs- Boot the application
node launch.jsDocs
Structure folder is:
- Assets (Style Files)
- Controllers eg.(Home.js, 404.js)
- Model (DB)
- Views (index.html, home.html)
