Note
|
The Quickstart requires Java 21 and a recent Git (2.46 or newer preferred) to be available on your machine. If you miss any of those go through the steps described in Prerequisites.
Also, note that you have to run mvnw.cmd instead of ./mvnw if you run Windows by accident.
|
$ git clone https://github.com/st-tu-dresden/videoshop
$ cd videoshop
$ ./mvnw clean package
$ ./mvnw spring-boot:run
After that point your browser to http://localhost:8080
.
Note that the standard admin user is named boss
and has the password 123
.
Download the binaries, install. Make sure the console shows something like this:
$ java -version
openjdk version "21.0.4" 2024-07-16 LTS
OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode)
Make sure that the wrapped Maven picks up the same JDK version and that the following command shows similar output:
$ ./mvnw --version
Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
Maven home: /.m2/wrapper/dists/apache-maven-3.9.9/3477a4f1
Java version: 21.0.4, vendor: Eclipse Adoptium, runtime: /Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "14.7", arch: "aarch64", family: "mac"
Download the binaries, run the installer. Verify the command line shows something like this after install:
$ git --version
git version 2.46.1
Grab the latest Spring Tool Suite (plain Eclipse should work as well), run installer or unzip and run it.
Select File › Import, select Maven › Existing Maven Projects, select the folder you checked the project out into and hit Finish. This will import the project into your workspace.
In the Console view you might wanna click the Open Console button and select Maven Console to see that Maven is downloading dependencies, sources and Javadocs.
Grab the latest IntelliJ IDEA IDE (both Community Edition and Ultimate Edition will work), install it according to the instructions on their website and run it.
From the Welcome Screen, select Open. Otherwise, if you’ve already opened another project, you’ll need to select File › Open….
Now, navigate to the folder you checked the project out into (it should contain pom.xml
), select it and hit Open.
When asked whether to trust and open the Maven project, proceed with Trust Project.
Now you have to wait a bit while IntelliJ and Maven work on importing the project, which includes downloading all required dependencies from the internet. All IDE activities are displayed in the status bar.
This sample application is build on top of the following technologies:
Rapid application development framework based on Spring (see below).
Spring module to easily build data access layers using JPA 2.1 (Java Persistence API).