COVID-19 Tracker application frontend in Ionic
- NEVER USE
SUDO
COMMAND. IT IS A BAD PRACTICE. It can cause serious damages to the system. -
- Latest v8.1.2
- Check with
npm -v
- Installation guide nodejs
-
- Latest v6.18.1
- Check with
ionic -v
- Installation:
npm install -g ionic
-
-
- Open Mac App Store
- Download XCode
-
- Download Android Studio
- On the Welcome page, go to More Actions > SDK Manager
- Download SDK Build-Tools
- Download SDK Command Line
- Download Android Emulator
- Download Android 12.0
- On the Welcome page, go to More Actions > AVD Manager
- Create Virtual Device
-
-
- Run
npm install
- Open the Environment's terminal or Terminal
cd
to the project's root folder- Run the code with
ionic serve
- Open
http://localhost:8100
to see the web app
- Run
-
- Run
npm install
- Open the emulator iOS or Android emulator
- Run
ionic capacitor run ios -l
- Check doc for more options
- Run
*** This part will be updated later, when the project is ready
-
- iOS is already added to the project
- Run
ionic capacitor open ios
- Run
ionic capacitor copy ios
to sync the projects everytime there is a change to test/build - Check this to generate the XCode project
-
- Android is already added to the project
- Run
ionic capacitor open android
for the first time - Run
ionic capacitor copy android
to sync the projects everytime there is a change to test/build - Check this to generate the XCode project
Note: Build/compile time is much longer when running this project on docker compared to running directly on your machine.
- Download docker
- Open the Environment's terminal or Terminal
cd
to the project's root folder- Build:
docker-compose build
- Run:
docker-compose up
- Open:
http://127.0.0.1:8100
Deployment of the app is made on Firebase
- All changes to master, updates the live Firebase deployed app
- For each PR, a preview deployment is made in order to test the website
- Firebase waits for all GitHub Workflows to finish and succeeds, in order to deploy
- The Firebase website is connected to the deployed AWS server