Miss any of our Open RFC calls?Watch the recordings here! »

artista-mean

0.0.5 • Public • Published

artista-mean

Installation

$ npm install -g express-generator
$ npm install -g artista-mean

Features

Generates MEAN stack from JSON file.

No definition. All you need is data JSON files!

artista-mean analyze JSON files, then generate schemas.

  • Generates express project
  • Generates mongoose ODM
  • Generates AngularJS application
  • Generates Management Page for JSON data

Quick Start

  • Prepare directory for JSON files
% tree /tmp/json
/tmp/json
├── Car.json
└── Person.json
 
0 directories, 2 files

Car.json

[
    {
    "id": 7,
    "name": "RX-7"
    },
    {
    "id": 8,
    "name": "Elise"
    },
    {
    "id": 9,
    "name": "NSX"
    }
]

Person.json

[
    {
    "id": 1,
    "name": "Takayoshi Aoyagi",
    "gender": "male",
    "age": 43,
    "company": {
        "name": "Artista",
        "position": "president"
    },
    "hobbies": ["Car", "Music", "Taekwon-do"],
    "married": true
    }
]
  • Execute command
$ artista-mean /tmp/sample /tmp/json
cd /tmp/sample && npm install
$ node import.js
$ npm start
  • Auto generated Admin page

http://localhost:3000/admin.html

Install

npm i artista-mean

DownloadsWeekly Downloads

1

Version

0.0.5

License

MIT

Last publish

Collaborators

  • avatar