Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Scaffolding for meteor
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
crudtemplate
meteor
node_modules/wrench
README.md
create.js

README.md

Impact

This script provides (basic atm) scaffolding for meteor. WORKS WITH THE AUTH BRANCH

How does this magic work

git clone https://github.com/lvbreda/meteor_impact.git 
//create models like explained below
node meteor_impact/create.js project absolute_path_to_models

How to create a models

{
    "posts" :{
        "title" : {"required" : true,"type" : "string","max" : "128","min":"2"},
        "description" : {"required":false,"type" : "string" , "max":"512"},
        "content" : {"required" : true, "type" : "string","max":"1000000"},
        "comments" : {"required":false,"type" :"subDocuments","subDocuments":{
            "name" : {"required" : true,"type":"string"},
            "text" : {"required" : true,"type":"string"}
        }}
    },
    "pages" :{
        "title" : {"required" : true,"type" : "string","max" : "128","min":"2"},
        "content" : {"required" : true, "type" : "string","max":"1000000"},
        "date" : {"required" : true, "type" : "date"},
        "likes" : {"required" : true, "type" : "number","min":"5","max":"1500"}
    }
}
Something went wrong with that request. Please try again.