bigskysoftware / contact-app

102 stars 48 forks source link

Non-HTMX branch of code to work from. #10

Open banillie opened 1 year ago

banillie commented 1 year ago

Hi there. I'm working my way through your excellent hypermedia book and I'm wondering if there could be a non or pre-htmx version/branch of the code to work from as a starting point from which htmx could be coded into by following the steps you describe in the book? Thank you.

mousedownmike commented 1 year ago

@banillie, I had a similar problem, so I went ahead and implemented the application in Go with code from individual chapters separated into branches.

The full repository is here: https://github.com/mousedownco/htmx-contact-app

And the code from Chapter 03 - A Web 1.0 Application is here: https://github.com/mousedownco/htmx-contact-app/tree/Ch03-A_Web_1.0_Application

banillie commented 1 year ago

@mousedownmike thanks for sharing. Like you I think I'll probably build it from scratch before putting in the htmx examples. I'm not v familiar with flask, so also a good way to learn some of it.

mousedownmike commented 1 year ago

@banillie, I struggled a little bit with the missing.css file from missing.style. The version referenced in this repository doesn't appear to exist anymore, but everything seems to mostly work with the latest version 1.1.1.

Good luck with your implementation, it is a great way to learn!

banillie commented 10 months ago

@mousedownmike Thanks for pointing out the missing.css v helpful. plus liking the styles!

jwithington commented 1 month ago

This is a really good idea -- I'm following along in the book, and currently I'm in the Flask / Web 1.0 section, up to the point where they show the table layout and joke about how it's not pretty. aAt that point, they have already left a lot out, including:

I'm really loving the book so far (I even posted about it), but at this point in the book there's a lot of things left out -- and that's a bummer, because they are so good about explaining things that I wish they'd followed their own steps and realized what was left out.

I hope the htmx version really does go step by step.

juanshotyou commented 5 days ago

You can use commit c72e01dabdaaafc41e1009b304c8bef467f83e47 (the one before adding the HTMX delete feature) which has the Web1 version of the code as the starting point and work from there? Seems to be working, but I've not tested it fully - I'm just going through the book now and using that as the starting point.

git checkout -b web1-version c72e01dabdaaafc41e1009b304c8bef467f83e47