Eine detailierte Anleitung im Videoformat, wie die Applikation ausgeführt werden kann, ist hier verfügbar (deutsch)
🎥: https://youtu.be/1XYtVwS1AL0
Alternativ kann auch die schriftliche Anleitung unterhalb befolgt werden (englisch)
The web application FoodLike - nutritional analysis inspired by the mobile dating app Tinder.
A project by students of the ZHAW SML Winterthur.
Open a terminal on 📂 ./svelte/
folder
and launch $ npm install
/ $ yarn
to install dependencies
To launch frontend compilation in development mode:
$ npm run java:dev
/ $ yarn java:dev
To launch frontend compilation in production mode:
$ npm run java
/ $ yarn java
Note: You will need to have Node.js installed.
To start the application, you can either use the Visual Studio Code extension Spring Boot Dashboard (Recommended)
OR
you can start the project directly through your terminal with the command:
mvn spring-boot:run
Please make sure that MySQL is installed and running.
Please replace the username and password for access permission to your personal MySQL database in the following file
📂 ./src/main/resources/application.properties
Create a new Schema in MySQL with the following name
CREATE SCHEMA nutritionapp;
Note: Please
Set as Default Schema
After the Schema has been created and you have selected Set as Default Schema
: insert the necessary MySQL statements into the database.
These statements can be found here 📂 ./src/main/resources/data.sql
Please go through the Run Application part again if necessary.
Now you should be able to access the application via localhost:8082
with a browser of your choice.
We have installed the following Visual Studio Code Extensions in our development environment. Not all are necessary for the execution of the application, but we highly recommend that you install them as well, otherwise we cannot guarantee smooth functionality.
Extension | Version | Download |
---|---|---|
Debugger for Java | v0.47.0 | here |
Extension Pack for Java | v0.25.7 | here |
IntelliCode | v1.2.29 | here |
IntelliCode API Usage Examples | v0.2.6 | here |
Language Support for Java(TM) by Red Hat | v1.13.0 | here |
Maven for Java | v0.40.2 | here |
Project Manager for Java | v0.21.1 | here |
Spring Boot Dashboard | v0.9.0 | here |
Spring Boot Tools | v1.42.0 | here |
Svelte for VS Code | v106.3.2 | here |
Test Runner for Java | v0.37.1 | here |
Note regarding Version: These are the versions we have installed in our development environment, in case there are any problems with future updates.
https://spring.io/projects/spring-boot