Web application for Dahenfeld.
npm installnpm run devnpm run buildLint with ESLint
npm run lintYou need to configure your own environment file (/.env) which contains some mandatory data.
# Backend
VITE_BACKEND_URL=""
VITE_BACKEND_AUTH_USER=""
VITE_BACKEND_AUTH_PASSWORD=""
# Virtual Tour
VITE_VIRTUAL_TOUR_API_KEY=""
VITE_VIRTUAL_TOUR_MAP_ID=""
# Firebase
VITE_FIREBASE_API_KEY=""
VITE_FIREBASE_AUTH_DOMAIN=""
VITE_FIREBASE_PROJECT_ID=""
VITE_FIREBASE_STORAGE_BUCKET=""
VITE_FIREBASE_MESSAGING_SENDER_ID=""
VITE_FIREBASE_APP_ID=""
VITE_FIREBASE_MEASUREMENT_ID=""
VITE_FIREBASE_VAPID_KEY=""
For Azure Action you need to pass this as a base64 encoded string to ENVIRONMENT_VARIABLE. Use
e.g. openssl base64 -in .env | tr -d '\n' | pbcopy on MacOS in the root directory.
Before releasing the apps to the stores you need to update the following files and increment to the correct version:
- config.xml
- package.json
- imprint.page.ts
After that you need to build the project and copy files:
ionic build --prod
npx cap copy
Open Android Studio with the following command
npx cap open android
Change version code & version name and generate a signed apk or bundle: Build -> Generate signed APK / Bundle. Select keystore, set password and alias and click "next". After that the apk or bundle should be created. Locate the file, upload it on https://play.google.com/apps/publish with a new release.
In order to use push notificiations you need an google-services.json in the directory android/app/. The file can be
found in Google Firebase.
Open the project in XCode with
npx cap open ios
change version. Select "Generic iOS Device" in dropdown at the top. Then use Product -> Archive to upload the file. After that you can continue the release process on https://itunesconnect.apple.com/.
You need to enable the push notifications in XCode. Add them as Capability, then you are ready to go.