JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 190
  • Score
    100M100P100Q69562F
  • License MIT

Lightweight, plug and play admin interface

Package Exports

  • admiraljs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (admiraljs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

AdmiralJS

Lightweight plug and play admin interface
http://www.admiraljs.com

based on NODE.JS, written in Javascript.

INSTALLATION

npm install admiraljs

or

sudo npm install https://github.com/StudioDeTelevision/admiraljs/tarball/beta

create an app.js file with minimum:

var admiral=require('admiraljs');

admiral.setConfig({ port:** the port you want admiraljs to run on **, database:{"basename":" ** database name ** ", host:" ** your database host ** "}, fileserver:{port: ** ex: 7020 ** },

} )

// define some schema (see the docs)

admiral.setSchema([

{  "schemaName":"user",
    "model":"user",
    "label":"Utilisateurs",
    "create":"user/create",
    "update":"user/update",
    "find":"user/find",
    "destroy":"user/destroy",
    "listFields":["email"],
    "fields":[{"name":"email","type":"string","editor":"string","label":"Email"}]
},{  "schemaName":"projects",
    "model":"projects",
    "label":"projects",
    "create":"projects/create",
    "update":"projects/update",
    "find":"projects/find",
    "destroy":"projects/destroy",
    "listFields":["name"],
    "fields":[{"name":"name","type":"string","editor":"string","label":"Name"}]
    }
    ])

admiral.start();

That's it !

easily CONFIGURABLE:

EXTENSIBLE - define your own field editors

As AdmiralJS is a webapp, it might also be easily ported for any RESTFUL API.

DOCUMENTATION

check the wiki https://github.com/StudioDeTelevision/admiraljs/wiki

contact: studiodetelevision@gmail.com

any suggestions or contributions are welcome !!!!!