mean-expert-official / loopback-sdk-builder

Tool for auto-generating Software Development Kits (SDKs) for LoopBack
Other
399 stars 178 forks source link

Update WIKI and add NgRx tutorial #611

Open sskhokhar opened 6 years ago

sskhokhar commented 6 years ago

What type of issue are you creating?

What version of this module are you using?

Write other if any:

Please add a description for your issue:

I just noticed that the WIKI is quite outdated. I did not even know I can build ngrx stuff with sdk. Kindly update the WIKI and provide a brief tutorial to use the generated ngrx in app.

jmls commented 5 years ago

did you ever find any docs / wiki ?

sskhokhar commented 5 years ago

@jmls Actually no. I had to go through the code and customize it according to my needs specifically NgRx and I think those were required features e.g 1 - If you want your store to use primary key other than "id" i.e slug, there was no option for that. 2 - There was no implementation to exclude models e.g You dont want some specific models to include in sdk because they are for backend only. 3 - If you have multiple User models then the sdk used the first model to authenticate but I changed it and now you can specify which model to use to authenticate. 4 - Model isProcessing, isProcessingSuccess, isProcessingFail, isProcessingResponse, isProcessingError implementations so you can show loaders after dispatching actions.