node package manager

microscope

opiniated node.js web application generator

README

microscopejs is a Node.js MVC framework for productive web development. It allow you create REST API and CRUD controllers quickly with Command Line Tool. microscopejs is based on express.js so it's MVC design pattern. Because i want to build microscope with best nodejs tools, it use sequelize ORM and passport to perform authentication.

You can follow microscope development trello board here:

microscopejs trello board

node.js >= 0.8

install with npm:

sudo npm install microscope -g

Open terminal and run:

microscope new [myprojectname]
cd [myprojectname]
sudo npm install
bower install

Create a new mysql database.

Go to ./configs/database.json and edit json database configuration file.

Run :

microscope tool

And select: database > synchronize

Run server with :

microscope server

For development use grunt tasks:

grunt debug
  • run application with nodemon.
  • watch assets files changes.
  • run default web browser.

You're done !

microscope provide command line interface to build web application quicly.

microscope new [projectName]
microscope server
microscope generate model [modelName] [property1]:string [property2]:text [property3]:boolean ...

the properties of the models can be of the following types:

string, text, boolean, date, integer, float

microscope generate controller [controllerName] [action1Name] [action2Name] ...
microscope scaffold controller [modelName] [property1]:string [property2]:text ...

add -m or --mobile in option to scaffold jQuery mobile views.

microscope scaffold api [modelName] [property1]:string [property2]:text ...
microscope scaffold dal [modelName] [property1]:string [property2]:text ...
microscope tool

microscopejs.com

microscope is released under the MIT license.