This is a sample back-end application designed to demonstrate typical use cases and best practices in Spring Boot development.
Welcome to Hogwarts Artifacts Online, a sample back-end application designed to demonstrate typical use cases and best practices in Spring Boot development. I wrote this sample application line-by-line from scratch in my YouTube course titled "Learn Spring Boot 3 with Bingyang" .
Throughout the course, Hogwarts Artifacts Online serves as a running example and is developed progressively. That is, each episode introduces new Spring Boot features that add functionality or improvements to this project. This approach helps you see how different concepts fit together in a practical context.
In addition to exploring the features of Spring Boot, the course delves into essential software engineering practices. We will start by framing user stories, then move on to crafting REST APIs and applying object-oriented design principles. Embracing test-driven development, we will meticulously build and refine each feature. The culmination of this journey is setting up a comprehensive CI/CD pipeline, ensuring smooth deployment of the application.
Suitable for Muggles and Wizards Alike
Whether you're new to Spring Boot or an experienced developer looking to add some magic to your skillset, Hogwarts Artifacts Online is the perfect place to start. As you follow along with the videos, I encourage you to actively code alongside me. Engaging in hands-on practice is an excellent method for mastering programming skills. So grab your wand 🪄 (or keyboard ⌨️) and prepare to embark on a journey into "Learn Spring Boot 3 with Bingyang" !
Through my YouTube course, you will gain practical experience in:
Additionally, my course emphasizes good software engineering practices, such as:
🔗 The mind map of the Hogwarts Artifacts Online user stories
🔗 Hogwarts Artifacts Online API Documentation
Clone the repository:
git clone https://github.com/Washingtonwei/hogwarts-artifacts-online.git
Navigate to the project directory:
cd hogwarts-artifacts-online
Run the application:
Since Hogwarts Artifacts Online is a Spring Boot application built using Maven, you can run it from Maven directly using the Spring Boot Maven plugin:
./mvnw spring-boot:run
Or on Windows:
.\mvnw.cmd spring-boot:run
There is a Dockerfile
in this project. You can build a container image (if you have a docker daemon):
docker build .
In its default configuration, Hogwarts Artifacts Online uses an in-memory database (H2) which
gets populated at startup with data. The H2 console is available at http://localhost/h2-console,
and it is possible to inspect the content of the database using the jdbc:h2:mem:hogwarts
URL.
I have defined a class edu.tcu.cs.hogwartsartifactsonline.system.DBDataInitializer
to populate the H2 database at startup.
The issue tracker is the preferred channel for bug reports, feature requests, and submitting pull requests.
The Hogwarts Artifacts Online application is released under version 2.0 of the Apache License.
If you're looking to enhance your understanding of this Spring Boot tutorial, I highly recommend watching the accompanying YouTube video playlist. It provides a comprehensive walk-through of the concepts and code discussed here, complete with visual demonstrations and step-by-step explanations. Whether you're a visual learner or just prefer a more interactive approach, those videos are a valuable resource to solidify your grasp of Spring Boot.
Check them out now below to dive deeper into the world of Spring Boot development!