This post is here for my old brain so I can refer to it in the future when I make updates again without scratching my head (too much).
Updates
added the more robust ngx editor options for better html support via app module.
added more meta tags (title) and fixed description to strip html when a link is posted elsewhere (twitter). This is related to SSR func., and makes those cards adhere to standards (like anyone cares).
recently made a separate app via Xcode/swift to upload images in more controlled fashion. It works better than the built in web uploader, but it’s still a colossal pile of…
update tweet functionality so it works with v2 api and it uploads up to three images (I dont like the way four looks). Did not have to get new keys, which was nice. Deprecated the old tweet func altogether.
Fixes
fixed the backend so that the blog post comments would upload again. This was related to not having the two way binding configured correctly.
Notes for Deploy
when updating site dist files, make sure to restart pm2 service for main as this is the server js file that makes SSR work. The server process in pm2 is for the node api.
don’t worry about copying all the node files over, just the ones you update. It’ll work. Update the env vars after deploy.
always make sure to edit the env props in two files in ng as this does not work auto for some reason (even though it should and I dont care/mind if it doesnt). edit: this is fixed for the angular front end now.
Other Things and ToDos
Make the web-based image uploader good one day…
Update Angular to newest version soon.
I always tell myself to update the CSS, but I actually don’t mind it, even though I know it could be better - I just don’t have the design chops, but there’s nothing terribly wrong with it either. I once asked my brother to take a look at the earliest design of this site and he did direct me in the right direction as the initial idea was trash.
I also want to add the ability to edit the post directly from the public posting, and to produce a better dedicated editor file for that. Currently, the editor is too simple and a PITA to use.
Finally, just noticed that the CSS does not format correctly for chrome (but it does in safari).
Continuing to play around with image uploading so it is more dependable - here is a sample of 25 random images from my ssd - of the 25 I asked it to upload in sequence initially, two partially failed, and eight failed to materialize altogether, and the node express api did not crash, which is a huge improvement.
This was accomplished with adding only one async call in the image upload loop to the angular side, but I have a feeling that continuing to tweek the node api will also potentially alleviate more issues. Regardless, errors can happen, and what with no proper error handling on the server, I should not be surprised my results are unsatisfactory. Some work has been done on the node side, but it’s mainly trial and error as I am a JS idiot.
Anyways - that’s one small improvement on the backend down - hopefully many more to go.
Redeployed the site after bringing the development environment past v15, adding a route resolver to the main route, and tweaking the CSS on main page to simplify things - make it look cleaner and less cluttered. There’s a simpler version more efficient version of this main layout as well. I’m not a designer, which is obvious, but I figured if I kept things simple, the would look good, but things never look right to me.
Keep thinking like Marie Kondo until I get there I guess.
As well as this update, please accept this assortment of random images I generated via mid journey with various prompts inspired by Treasure games, and other weird pics hanging out in my screen shot and download folders.