- Setup Keycloak in non-HA mode (replica 1)
- Disable UserFederation
- You might have to increase the resource limits to avoid that pod beeing killed by memory or CPU limits
See Keycloak Documentation for more details.
| /** | |
| * App Initializer with Effects | |
| */ | |
| export function initApplication(store: Store<AppState>) { | |
| return () => | |
| new Promise(resolve => { | |
| const loaded$ = new Subject(); | |
| store.dispatch(new LoadSystem()); | |
| store |
See Keycloak Documentation for more details.
| desc "Submit a new Beta Build to Crashlytics Beta" | |
| lane :beta do | |
| # need to use `react-native bundle` instead of bundleReleaseJsAndAssets from grdale | |
| # because it causes 134 error (out of memory) on Circle CI | |
| sh "cd ../.. && react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/" | |
| gradle( | |
| task: "assembleRelease", | |
| flags: "-x bundleReleaseJsAndAssets" | |
| ) | |
| crashlytics( |
| // Nothing changed here, works as previously. | |
| @Effect() actionX$ = this.updates$ | |
| .ofType('ACTION_X') | |
| .map(toPayload) | |
| .switchMap(payload => this.api.callApiX(payload) | |
| .map(data => ({type: 'ACTION_X_SUCCESS', payload: data})) | |
| .catch(err => Observable.of({type: 'ACTION_X_FAIL', payload: err})) | |
| ); | |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
We describe a model for client-server processing where the Redux model is used to minimize stateful code. This should allow live-reloading server code, and make it possible to share code (e.g. optimistic updating) between client and server.
| let timeout = 1000; | |
| /** | |
| * Create a custom observable that creates a XHR request and returns complete when the promise is fulfilled | |
| */ | |
| let observable = Rx.Observable.create((o) => { | |
| dataService.fetch('test.json') | |
| .then((data) => { | |
| o.onNext(data); | |
| o.onCompleted(); |
| internal class ResourceManager | |
| { | |
| #region Singleton | |
| private static Lazy<ResourceManager> instance = new Lazy<ResourceManager>(() => new ResourceManager()); | |
| internal static ResourceManager Instance { get { return instance.Value; } } | |
| private ResourceManager() | |
| { |
| protected void Application_BeginRequest() | |
| { | |
| this.SetupCorsHeaders(); | |
| //OPTIONS request comes before the POST to know the permissions. this forces to send the reply. | |
| if (((IList)Request.Headers.AllKeys).Contains("Origin") && Request.HttpMethod == "OPTIONS") | |
| { | |
| Response.Flush(); | |
| } | |
| } |
| package com.mycompany.myapp.app; | |
| import android.app.Application; | |
| import android.content.Intent; | |
| import com.google.android.gms.common.GooglePlayServicesUtil; | |
| import com.google.android.gms.security.ProviderInstaller; | |
| import com.google.android.gms.security.ProviderInstaller.ProviderInstallListener; | |
| public class MainApplication extends Application { |