artista-mean

MEAN stack source code generator

Usage no npm install needed!

<script type="module">
  import artistaMean from 'https://cdn.skypack.dev/artista-mean';
</script>

README

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