magicjs

0.0.36 • Public • Published

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.js

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

Readme

Keywords

Package Sidebar

Install

npm i magicjs

Weekly Downloads

6

Version

0.0.36

License

GPL-3.0

Last publish

Collaborators

  • mihaisandor