GithubHelp home page GithubHelp logo

ktstowell / valence Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metaltoad/valence

2.0 2.0 0.0 7.04 MB

Data, Authentication and View Transition layers for Angular applications.

JavaScript 100.00%

valence's Introduction

Valence

A data management framework for Angular.js

Version 1.2.1


Version 1 Updates

  • The model layer now uses the strategy pattern to move through sequences.
  • Valence now includes access control with identity management.
  • Consistent API across modules.
  • Consolidated route hook system.
  • Stronger auth integration when fetching/persisting data in the cloud.

Version 1.2.0 Updates

  • skipApply option has been added to bypass the apply stage. The primary use case for this is when an endpoint may return some data that isn't in compliance with the intention of the model. In that case you can simply have the data passed back to you without assigning it to scope.
  • Created a valence.utils namespace that houses some helper functions.

Version 1.1.1 Updates

  • Valence now supports custom redirects based on HTTP status codes when a model fails in the cloud layer. For example, say with route: blog/:post_id, blog/1234 would return a valid post object, however blog/12345 would not as well as return 404. Through setting a redirect option in the HTTP action in question, the user will be navigated to the specified page.
  • Strtegy.fail assigns args.data just like strategy.pass does to be more consistent.

Patches

1.2.1

  • Fixed a race condition with the ACL.previous options where the absOldURL was being set to the restrictied URL before the ACL rejected the identity. Causing an infinite loop.

1.1.1

  • Fixed a bug with normalization that didn't assign normalized data to scope but only returned it within the promise object.
  • Fixed a bug with normalization where a global var existed, breaking minification.
  • Reduced the min loader display time to 250.

1.0.2

  • Adding an enabled check to valence.loader.wrapUp to prevent errors from being thrown when the loader is disabled.

1.0.1

  • Updated normalize arguments to be more consistent with Auth and ACL.

Installation

bower install valence

Development

You'll notice that master has no package.json, that is because master is not intended for development and is only meant for bower installations. To work with the code from a clone, please checkout the dev branch.

  1. Clone
  2. git checkout dev
  3. cd valence/cloud-app
  4. npm install
  5. node app.js
  6. cd ../data-app
  7. npm install && bower install
  8. grunt server

Dependencies

For step 3, you will need mongodb installed an running. You will also need to import the valence database found in /db.

Issues

Please report them in the issues tab.

The future

The future will contain lazy-loading and pagination integratations!

And other stuff I haven't thought of yet.

valence's People

Stargazers

Dan White avatar Colby Callahan avatar

Watchers

Ken Stowell avatar Alex Banks avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.