A step-by-step guide to creating a real-world search and filter UI with Quarkus, PostgreSQL Dev Services, and PrimeVue.
https://www.the-main-thread.com/p/dynamic-car-filtering-app-quarkus-panache-tutorial
#Java #Quarkus #PostgreSQL #PrimeVue
It's a real pain to work an a light theme in the dark....🙃
Previously, I wrote about my idea to use the GitHub API to create a photo blog with its content completely in Git commits. Later, I tweaked the idea to replace the API with CI/CD actions. Since then, I have tried many things that didn’t work. I finally declared it done for now, though. If you want to check out the code behind JWS Pictures, it is all available on GitHub.
What worked
I started the process with three goals:
The design meets those three goals, but I had to figure out what would be a bridge too far for the APIs.
There are six static data files:
There is a “photos” folder in the project, and separate year sub-folders are inside of that. When you commit an image file into a year sub-folder, it starts a GitHub Actions (just a CI/CD Pipeline) workflow that:
The workflow has limitations. You can only commit and push one image file at a time and can’t batch them.
The Interface
When I wrote the site, I used Vue.js because “why not?” and PrimeVue because I hadn’t used it before. It uses “dark mode” or “light mode,” depending on the user’s system preferences. I also made it a Progressive Web App (PWA), so you can install it onto your device. The large images are 80% of the original, the medium-sized photos are 25% of the original, and the small image images are 10% of the original. The image displayed at the top of the page uses one of the three depending on the size of the user’s device.
I used Leaflet (a pretty cool library for generating mobile-friendly interactive maps) for the map at the bottom of the page. I’ll need to do a dedicated post about it at some point.
What didn’t work
A lot of things didn’t work. I tried using web mentions to allow people to comment on images. I attempted to use createWebHistory() to get rid of the # in the URL but had to use a hack with the 404 handler to do it. I tried to use a fediverse account and a Blusky account using Bridgy to auto-post photos, but I couldn’t get the bridge to work.
Some of these issues are due how I am hosting the site and some of it is due to the fact that I’m trying to use GoToSocial with it.
What do I want to do with it next?
I built this to have reasonably good APIs, so I have a few plans for it.
Have any questions, comments, etc? Please feel free to drop a comment.
#74: But it’s soup
After a long hiatus, the whole gang is back! @javajuneau @dhinojosa @ianhlavats and @[email protected] are joined by pilot and #OSS contributor, [email protected]. They discuss #microprofile, #htmlx, @devoxx Genie, #IntelliJ #AI Assistant, #Apache #Shiro, #Arquillian, #PrimeVue, #PrimeNG, #Angular, #BDD, #Jsoup, #JBake, #TestContainers, and much more! https://www.pubhouse.net/2024/10/stackd74-but-its-soup.html
#74: But it’s soup
After a long hiatus, the whole gang is back! @javajuneau @dhinojosa @ianhlavats and @kito99 are joined by pilot and #OSS contributor, @lprimak. They discuss #microprofile, #htmlx, @devoxx Genie, #IntelliJ #AI Assistant, #Apache #Shiro, #Arquillian, #PrimeVue, #PrimeNG, #Angular, #BDD, #Jsoup, #JBake, #TestContainers, and much more! https://www.pubhouse.net/2024/10/stackd74-but-its-soup.html
Last month, I wrote about an idea that I got to use GitHub Pages as the canonical home for my photos. Over the years, I have hosted pictures on Flickr, Blogger, Pixelfed, Instagram, 500px, and Twitter. At one point, I even primarily hosted them here on this blog. Every solution had one issue or another. In the previous post, I talked about using the GitHub API. After some thought, I decided to use GitHub Actions instead to handle the image processing and generation of static JSON files. That eliminates the need for that API.
I created the site at https://jws.pictures and hosted it with GitHub Pages. I am using Vue, PrimeVue, and Leaflet. Adding a new image is still simply a matter of committing an image to the GitHub repository. The image description and physical location come from the commit message.
The remainder of the data on the website comes from the image’s EXIF data.
Now that JWS Pictures exists, I need to add photos. Do you have any questions, comments, etc.? Please comment below.