My personal website reinstated, this time written in Spring
Ensure snapd
is installed on your system, then install donaldsebleung-com
from the Snap store.
Next, run the following commands to make your CA-issued (or self-signed) key-certificate pair available to donaldsebleung-com
:
$ sudo donaldsebleung-com install-key < /path/to/your/key.pem
$ sudo donaldsebleung-com install-cert < /path/to/your/cert.pem
If your private key is protected by a passphrase <passphrase>
, run the following command to make donaldsebleung-com
aware of it:
$ sudo donaldsebleung-com set-passwd "<passphrase>"
Finally, enable the service snap.donaldsebleung-com.donaldsebleung-comd.service
to run at boot:
$ sudo systemctl enable --now snap.donaldsebleung-com.donaldsebleung-comd.service
Ensure that Java 8 or later is installed (ideally Java 11 or later) and that the JAVA_HOME
variable is set correctly. Furthermore, ensure Git is installed. Then, in a terminal or command prompt:
$ git clone https://github.com/DonaldKellett/donaldsebleung-com.git
$ cd donaldsebleung-com
Now you can run the project with (replace mvnw
with mvnw.cmd
if on Windows):
$ ./mvnw spring-boot:run
Point your browser to https://localhost:8443 to see the result. Note that your browser may block the site due to the use of a self-signed certificate. In this case, it should be safe to ignore the warning and proceed with visiting the site.
Alternatively, you could package the project with (again, replace mvnw
with mvnw.cmd
if on Windows):
$ ./mvnw package
This creates a Java archive at target/personal-website-0.0.1-SNAPSHOT.jar
which can be run with:
$ java -jar target/personal-website-0.0.1-SNAPSHOT.jar
For convenience, you may wish to move the JAR elsewhere.
The front-end design is based on Hyperspace by HTML5 UP, released under the CC BY 3.0 license.