generator-ng-admin-postgrest
v0.5.1
Published
ng-admin + PostgREST Yeoman generator
Maintainers
Readme
ng-admin PostgREST Generator
Yeoman generator for ng-admin + PostgREST.
Scaffold an ng-admin web application generated on an existing PostgreSQL database exposed via PostgREST.
ng-admin PostgREST Generator explore your PostgreSQL database, detecting tables and automagically generate ng-admin entities.
Usage
Download PostgREST
Install yo, grunt-cli, bower, generator-ng-admin-postgrest:
npm install -g yo grunt-cli bower generator-ng-admin-postgrestMake a new directory, and cd into it:
mkdir my-new-project && cd $_Run yo ng-admin-postgrest, optionally passing an app name:
yo ng-admin-postgrest [app-name]Generator will ask you:
- database connection
- which entities generate
- postrest configuration
- http server configuration
Start the http and postgrest server for preview.
grunt
grunt serveStructure
The application structure follow the official Yeoman generator-angular
├── bower.json
├── Gruntfile.js
├── package.json
├── postgrest.json
├── app
│ ├── index.html
│ ├── app.js
│ ├── favicon.ico
│ ├── scripts
│ │ ├── entities
│ │ │ ├── <entity 1>.js
│ │ │ ├── <entity 2>.js
│ │ │ ├── <entity 3>.js
│ │ ├── ng-admin-postgrest
│ │ │ ├── config.js
│ │ │ ├── provider.js
│ │ ├── styles
│ │ │ ├── main.scssRequirements
a PostgresQL database with a user credentials for access information_schema catalog
Credits
- Starting from ng-admin-postgrest
- Based on
License
BSD license Copyright (c) Michele Lazzeri
