mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 06:22:53 +00:00
docs: describe how to toggle backends
This commit is contained in:
17
README.md
17
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.
|
||||
|
||||
Reference in New Issue
Block a user