Comments (8)
@adriatic - not sure but just checking in, are you referring to instructions around how the build process generates the angular loopback services
file?
- https://github.com/strongloop/grunt-loopback-sdk-angular
- https://github.com/strongloop/gulp-loopback-sdk-angular
OR perhaps just everything else under the client folder?
from loopback-getting-started-intermediate.
@pulkitsinghal: good observation :-) - the samples you referenced illustrate the creation of the Angular $resource file as documented here.
I am discussing creations of the extended version of the Yeoman generator which will create both server (node) and client (angular) application skeleton.
from loopback-getting-started-intermediate.
@adriatic - Understood! Hope this moves forward.
You may also want to checkout https://gitter.im/loopbackers/loopbackers.github.io which is full of folks that want to create better examples that convert directly into workable projects for loopback users, perhaps striking up a conversation there may lead to more immediate results?
from loopback-getting-started-intermediate.
@bajtos I'd like to bring this to your attention.
If I understand correctly, it's a reasonable suggestion, but (as the OP says) I don't think it really belongs here. If you think it makes sense, perhaps the issue should be moved to https://github.com/strongloop/generator-loopback. Then we can close this issue.
from loopback-getting-started-intermediate.
I believe that the improvements could be done in stages and @pulkitsinghal's proposal to see who in https://gitter.im/loopbackers/loopbackers.github.io might be interested to help with this is a good one (for some reason I did not try that chat room yet). Here are the steps that would make the generator a lot better:
- Add the flag "--supress-user-generation" to lb-ng tool. That way I can create the complete server-side CRUD stuff with SLC, "bring in" any Angular client code and roll my own "user/account management" (obviously I want to use Stormpath
- Gradually augment Command-line reference (slc loopback) to include the generation of the client side (Angular initially) all CRUD code that matches the expectations by the server side and output of lb-ng. Since the slc loopback will know a lot about app (like
loads your LoopBack server application, walks through all models, and generates code registering an AngularJS factory for each model
) there should be a limited amount of additional data that slc would need in addition to what is already defined.
My longstanding dream to be able to use StrongLoop and Stormpath together is getting closer as a consequence of two articles I just found
- https://github.com/stormpath/passport-stormpath
- https://github.com/strongloop/loopback-example-passport
I believe that I can hack something together myself as a proof of concept, having the item 1 ("--supress-user-generation") available, which I can also do myself.
from loopback-getting-started-intermediate.
Add the flag "--supress-user-generation" (...) obviously I want to use Stormpath
I am not familiar with Stormpath, does it require a loopback User model to be present on the server? If you remove the User model from the app or at least make it private (public:false
in server/model-config.json
), then lb-ng
should skip it.
If I understand correctly, it's a reasonable suggestion, but (as the OP says) I don't think it really belongs here. If you think it makes sense, perhaps the issue should be moved to https://github.com/strongloop/generator-loopback. Then we can close this issue.
+1 for moving the issue to generator-loopback. Related: strongloop/generator-loopback#85
from loopback-getting-started-intermediate.
Stormpath does not require loopback User model - it takes over the User management completely (see https://github.com/stormpath/loopback-stormpath for the definition of what the loopback-stormpath interface
will be. Until that interface is not available, I would like to be able to use as much of loopback CRUD related code generation features without possible interference from the User related code. So, making User model private is a perfect solution.
from loopback-getting-started-intermediate.
I don't believe that this is an issue with loopback-getting-started-intermediate per se, so I'm going to close this issue. If you still have issues that you want addressed, please open an issue in loopback, or the relevant repo.
from loopback-getting-started-intermediate.
Related Issues (20)
- Documentation create-sample-model.js bug HOT 1
- GET reviewer > RESPONSE "message": "Authorization Required", HOT 2
- Reviewers API { "error": { "name": "Error", "status": 401, "message": "Authorization Required" }} HOT 1
- Update to latest app scaffolding HOT 1
- currentUser gets wiped on page refresh HOT 4
- ValidationError: The `Reviewer` instance is not valid. Details: `email` is invalid HOT 1
- Handshake inactivity timeout HOT 2
- ACL typo? HOT 4
- creating relation error "Getting started part II" HOT 2
- Is it possible to write ES6 in Loopback? HOT 1
- Login form html error HOT 2
- Restrict a reviwer can only able to read the reviews for he is owner of ? HOT 3
- Add Review tab 401 - Unauthorized Error on GET /api/CoffeeShops HOT 2
- Review belongs to CoffeeShop, But Review not have coffeeShopId in review.json file HOT 2
- Login issue HOT 1
- Problem running the creation of a AngularJS client HOT 3
- Presence of server/boot/root.js here may confuse users. HOT 2
- Unable to create relationships in step2 HOT 9
- Extends Users to MyAppUser instead of Reviewer HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loopback-getting-started-intermediate.