feat: add scripts to enable login flow from localhost

This commit is contained in:
2023-10-17 14:50:34 +02:00
parent 5c8c151917
commit 656f2266e3
2 changed files with 16 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ All the npm scripts are defined in `package.json` [file](package.json). It is re
## Most useful commands
## Editing the Ionic Database from the browser
### Editing the Ionic Database from the browser
Add the following function using the browser console
@@ -90,6 +90,19 @@ You'll need to run _Chromium_ using
pnpm chromium:no-cors
```
### Help, I can't log in!
Login services will often block hosts not coming from the production
server. You can circumvent this locally by using the `:virtual-host`
scripts:
```shell
# Start the dev server on mobile.app.uni-frankfurt.de
pnpm start:virtual-host
# Run chromium with flags that redirect mobile.app.uni-frankfurt.de to localhost:8100
pnpm chromium:virtual-host
```
### Running the app
Install the npm packages needed for running the app (as for any other node project which uses npm):