Searching for contributors Contact me: Skype: psitrax ; IRC: Psi|4ward@freenode ; wio[at]psitrax.de
-
RESTapi accessable through Websockets express-websocket
-
Requesting a list-endpoint (
/api/users
) via socket results in an update subscription -
Broadcast model changes to all subscribeders (like SailsJS)
-
ApiLoop angular service as Model-Layer
-
JsonSchema support for angular-schema-form and validation
-
(npm-installable) Packages support containing Loopback and Angular code (like MeanJS)
-
Gulp based build system Gulpsi
-
generator to scaffold new apps (todo)
npm install psi-4ward/anguloop-example
npm start
-
Refactor modelChange2socket.js
-
- Respect
filter
param
- Respect
-
(yeoman) Generator
-
Extract ApiLoop into own project
-
Extreact
jsonschema-validator
andmeta-endpoint
bootscripts into own project -
Extreact
modelChange2socket
bootscript into own project -
Documentation
-
MenuService
-
frontend base package (AdminLTE?)
express-websocket pushes socket json-web-requests into the express routing
- every express route is also a socket route
- go through all middlewares so we dont bypass anything
See modelChange2socket.js for an draft
- loopback-packageloader loads loopback with model/configs aggregated from all package directories
- Gulpsi build the angular and aggregate bower deps from all package directories
suggested (but configurable) filestructure
├── packages
│ └── my-package
│ ├── angular
│ │ ├── templates
│ │ ├── providers
│ │ ├── controllers
│ │ ├── directives
│ │ ├── config.js
│ │ ├── routes.js
│ │ └── run.js
│ ├── assets
│ ├── less
│ ├── loopback
│ │ ├── boot
│ │ ├── models
│ │ ├── datasources.json
│ │ ├── middleware.json
│ │ └── model-config.json
│ ├── gulpsi.json
│ ├── package.json
│ └── README.md
├── public
├── config.json
├── package.json
└── server.js
Or split into angular and loopback packages? Whats your opinion?
- gulpsi findes it by searching for
gulpsi.json
- loopback-packageloader inspects
package.json
and searches foranguloopModule: true
key
Define a JsonSchem in your Model.json
using the jsonSchema
property. You could also mark this
schema as strict using strictJsonSchema: true
. A strict schema does not allow additional
properties.
The Schema gets exposed via _meta
endpoint for each Model. The fronend can request the Schema
and hand it over to angular-schema-form.