1.0.0 • Published 4 years ago

survey-sparrow-boilerplate v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

SURVEY SPARROW BOILERPLATE

create boilerplates with no build configurations

Quick Overview

npm i -g survey-sparrow-boilerplate
mkdir test-boilerplate
cd test-boilerplate
sparrow-boilerplate --init
npm start

If you've previously installed survey-sparrow-boilerplate globally via npm install -g survey-sparrow-boilerplate, we recommend you uninstall the package using npm uninstall -g survey-sparrow-boilerplate to ensure that you always uses the latest version.

Then open http://localhost:3000/ to see your app.

Get Started Immediately

You don’t need to install or configure tools like webpack or Babel. They are preconfigured and hidden so that you can focus on the code.

Create a project, and you’re good to go.

Creating an Ap

To create a new app, you may choose one of the following methods:

 sparrow-boilerplate --init

User Guide

Setting up Models

Example

Enter names of models as per guidlines : user{name(type:STRING,required:true)&age(type:INTEGER)} session{}

Each Model name should be seperated by space and fields should be wrapped inside {} and attributes of field names should be seperated with &

[] --> user defined names

[modelName]{[fieldName]([attributeName]:[attributeType]&[attributeName]:[attributeType])} [modelName]{[fieldName]([attributeName]:[attributeType]&[attributeName]:[attributeType])}

Commands

sparrow-boilerplate --init to create a new project

sparrow-boilerplate intialize-db to intialize database in a existing project

sparrow-boilerplate add-model to add new model or models (make sure database was setup before running this command)