Coder Social home page Coder Social logo

norse-cli's Introduction

Norse

A CLI for scaffolding a node application with Mongoose as the ORM.

Inspiration

This CLI is heavily based on the rails CLI from Ruby on Rails.

API

norse model [modelName] [...fields]

Creates a new model with modelName as the name (norse model Post creates Post.js).

norse model Post field:type

Creates a Post model with field as the document attribute and type as the attribute type (String, Boolean, etc...). By default the field will have type String if not specified.

norse controller [controllerName]

Creates a new controller with the name being controllerNameController (norse controller post creates postController.js).

norse controller post create update

Creates a postController with the methods of create() and update(). By default index, create, show, update and destroy are all created.

norse scaffold [modelName] [..fields]

Creates both a model and controller based on the modelName provided and fields provided. The default methods from controller command are added by default.

norse scaffold Post title description published_at:Date

Will create a model of Post with supplied fields and the controller of postController with default methods.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.