- Visual Studio Code
- Ionic
- Vue
- TypeScript
-
Open the command prompt and enter the following commands:
-
Install Vue
npm install -g @vue/cli
-
Install Ionic and Capacitor
npm install -g @ionic/cli @capacitor/assets
-
-
Navigate to the desired directory:
-
Clone the repository
git clone https://github.com/Sanmeet-EWU/cscd-488-490-project-save-farmers/tree/main/Source/savefarmer.git savefarmer
-
Change to the project directory and run the app
cd savefarmer && npm install && ionic serve
(This command should open the app in your browser. If it doesn't, ensure Vue and Ionic are installed correctly.)
-
You can now open the entire folder with a code editor such as VS Code (make sure to have the Vue, TypeScript, and Ionic extensions installed) to edit the code within the src
folder.
The following are third party plugins that you will need to run the app:
- Chart.js
npm install chart.js
- chartjs-plugin-datalabels
OR
npm install chartjs-plugin-datalabels
yarn add chartjs-plugin-datalabels
- In the project terminal, run the following commands:
Ensure Android Studio is installed and open during the first run to build properly.-
Add Capacitor Android files
ionic cap add android
-
Build Android
ionic cap build android
(This should open Android Studio and build the emulator)
-
Run the Emulator
ionic cap run
(This should launch the emulator. Note: It may take some time.)
-
- Verify Cypress is installed:
npm install cypress
- Ensure that the development server is running before starting Cypress:
npm run dev
By default, this serves the app at http://localhost:5173. You can change the base port in cypress.config.ts to match your local machine.
-
Run tests with Cypress:
npm run test:e2e
-
Navigate to navigation.spec.ts to modify/view tests:
cd savefarmer/tests/e2e/specs/navigation.spec.ts
You can find all the information at this Github and in this VIDEO
-
Install Capacitor:
npm run build npm install --save @capacitor-community/sqlite npx cap sync
-
Install Capacitor (Option #2);
npm install --global yarn yarn add @capacitor-community/sqlite npx cap sync