From 770945e0e99ae1042972147aa66a1017fa6b5bd3 Mon Sep 17 00:00:00 2001 From: Michel Jonathan Schmitz Date: Fri, 15 May 2020 17:17:37 +0200 Subject: [PATCH] docs: describe how to toggle backends --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index bb6b7ed8..21a576c4 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,23 @@ npm run docker:serve ``` which serves the app for running it in browser. It basically runs `ionic serve` in the docker container (on the docker builder image). +## How to toggle between the backends? + +``` +npm run build:web +npm run serve:web +``` + +Will build and serve the app using the configuration for the fake-backend. + +``` +npm run build +npm run serve +npm run build:prod +npm run serve:prod +``` +Will build and serve the app using the configuration for a real backend. + ## Further explaination of npm scripts All the npm scripts are defined in `package.json` [file](package.json). It is recommended to open the file and check what these scripts exactly do.