A re-coding of the outdated "SchoolHomework website" - a junior school home practice and games website, based on newer concepts microservices architecture and Jakarta EE. If you want to use this application then follow the URL given in this section link.
- School Shorts -
- SchoolDataAPI (Persistance API) -
- MariaDB Database Storage -
Application can be used in 2 ways:
- Either build it with Maven then run the JAR file, OR
- Run the pre-built OCI Container (Docker container) image. Both methods are discussed below.
OpenJDK18(or higher) and Maven should be already installed and accessible via Command Line. Use the following command in folder where you have downloaded this code and the 'pom.xml' file is located.
mvn -f pom.xml clean package
You can use Maven to build the Jar file. Once the JAR file is built, you can run it in one of following ways, from the downloaded project folder:
java -jar ./target/SchoolShorts-0.0.1-SNAPSHOT.jar
OR
java -jar .\target\SchoolShorts-0.0.1-SNAPSHOT.jar (ON WINDOWS)
OR
java -jar ./target/SchoolShorts-0.0.1-SNAPSHOT.jar --server.port=80 --server.servlet.context-path=/
OR
java -jar ./target/SchoolShorts-0.0.1-SNAPSHOT.jar --server.port=8091 --server.servlet.context-path=/schoolshorts
If you do not wish to use Maven and compile yourself then you may use the OCI Container image. You can run the Containerized version as follows. These instructions are assuming that you have Docker or Podman installed.
sudo docker run --name schoolshorts01 -d -p 8080:8080 hammadrauf/schoolshorts
OR
sudo docker run --name schoolshorts01 -d -p 80:8080 hammadrauf/schoolshorts
OR
sudo docker run --name schoolshorts01 -d -p 8080:8080 --env CONTEXT_PATH:/ hammadrauf/schoolshorts
OR
sudo docker run --name schoolshorts01 -d -p 8080:8080 --env CONTEXT_PATH:/myCustomContextPath hammadrauf/schoolshorts
To Stop Docker Container:
sudo docker stop schoolshorts01
To Start it Again:
sudo docker start schoolshorts01
sudo docker run --name schoolshorts01 -d -p 8080:8080 quay.io/hammadrauf/schoolshorts
OR
sudo docker run --name schoolshorts01 -d -p 80:8080 quay.io/hammadrauf/schoolshorts
OR
sudo docker run --name schoolshorts01 -d -p 8080:8080 --env CONTEXT_PATH:/ quay.io/hammadrauf/schoolshorts
OR
sudo docker run --name schoolshorts01 -d -p 8080:8080 --env CONTEXT_PATH:/myCustomContextPath quay.io/hammadrauf/schoolshorts
To Stop Docker Container:
sudo docker stop schoolshorts01
To Start it Again:
sudo docker start schoolshorts01
After launching the conatiner OR the Maven built JAR file, you can open a browser on the specified port and Context-Path.
For Example:
http://localhost:8080/
OR
http://localhost/
OR
http://localhost:8091/schoolshorts
OR
http://localhost:8080/myCustomContextPath \
Some links are protected by Spring-Security and need authorization. Developement/Testing user details are as follows:
UserID: user
Password: password\
The current version of the application is deployed at the following URL. Please note that it is still under development, not all functionality is currently available. If you want to use this application then follow the following link.
https://andromedabay.ddns.net/schoolshorts/ \