docs: describe how to toggle backends

This commit is contained in:
Michel Jonathan Schmitz
2020-05-15 17:17:37 +02:00
parent c1d33303aa
commit 770945e0e9

View File

@@ -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.