Skip to content

findMe frontend application built with angular on ionicframework

Notifications You must be signed in to change notification settings

uzh-ase-fs24/frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

findme-logo

findMe frontend 📱💻

A mobile first social media guessing game app.

Tech-Stack

This app is built with Angular and Ionic. This combination enables the app to work as progressive web app as well as a mobile app. Furthermore, Ionic provides standardized GUI elements that are optimized for the various platforms. For authentication Auth0 is deployed due to its simple and intuitive integration with Angular apps.

Setup

  • First install dependencies using npm install
  • Install the Ionic plugin for vscode

Dev

Web view

  • Run the app with ionic serve to view the app in the browser
  • Alternatively you can run the web build via the ionic plugin: Run > Web
  • Navigate inside your browser to http://localhost:8100

REMARK: CURRENTLY THE AUTHENTICATION ONLY WORKS IN THE PROGRESSIVE WEB APP

-> Use the mobile screen setting provided by chrome dev tools -> More information about PWA: https://support.google.com/chrome/answer/9658361?hl=en&co=GENIE.Platform%3DAndroid&oco=0

Editor Emulator

  • Install a mobile emulator plugin to open the app inside an emulator (pass localhost link to emulator)
  • Alternatively you can run the Web build inside the editor which will also trigger a mobile preview (navigate to the ... next to the Web Run and select open in editor)

Native app with capacitor (Android/IOS)

E2E Testing

  • Playwright is used for end to end testing. Important: Make sure to run the application before running the tests. For example using docker compose up
  • If not yet done run npx playwright install
  • Run npx playwright test to run the test suite in headless mode
  • Run npx playwright test --ui to run the test suite in UI mode (helpful for debugging)
  • Run npx playwright codegen localhost:8100 to generate your own testcase. Run npx playwright codegen --device="iPhone 14 Pro" localhost:8100 if you want to generate iPhone test cases (camera access not working)