Skip to content

sheldonbazzell/mean_scaffold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

Mean Scaffold

Get a MEAN stack CRUD app up and running quickly from the command line

Highly customizable before and after your code is compiled. Currently compatible with the stock MEAN stack.

Setup

Find a directory where you want to start your app. We'll call this your 'super root', as Mean Scaffold will create a root directory within this directory for your app.


Install

npm install -g mean-scaffold

You can now run the command 'mean-scaffold' from the directory of your choice.

Model Setup

Your command line will prompt you for the following:

  1. Project Name
  2. Model Name
  3. Attribute Name
  4. Attribute Type
  5. Another Attribute in this Model? If yes, repeat step 3
  6. Another Model? If yes, repeat step 2

Associations

Currently supports a one-to-many relationship. The parent class must be declared first with an attribute name of the related class (singular), and attribute type of ObjectsArray. The child class must be declared directly after the parent, with an attribute name of the related class (singular), and attribute type of ObjectId.

Example:

Model: User

Attribute Name: post

Attribute Type: ObjectsArray

Model: Post

Attribute Name: user

Attribute Type: ObjectId

Done

Made By: Sheldon Bazzell, Thomas Fowler, Wallis Wong, Garrett Katashima

Copyright (c) 2004-2010 by Internet Systems Consortium, Inc. ("ISC") Copyright (c) 1995-2003 by Internet Software Consortium

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

About

MEAN stack scaffold inspired by Rails' scaffold

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages