Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

todo web app #302

Closed
ktown007 opened this issue Oct 24, 2023 · 12 comments
Closed

todo web app #302

ktown007 opened this issue Oct 24, 2023 · 12 comments
Labels
2023 Everything related to the 2023 Advent Calendar Article an article proposal In Review Proposal Accepted

Comments

@ktown007
Copy link
Contributor

Which Perl module do you want to write about:
Dancer2 and HTMX
Please give a short description of the article you want to write. Two to three sentences is fine:
An example of super simple todo app using no javascript. Learn a bit of HTMX and Dancer2. The intent was not the golf it but it turned out to not need much code, this simplicity speaks to the power of these tools.

https://gist.github.com/ktown007/d3c45c70fc76a0785edf848cab209cbf

@oalders oalders added Article an article proposal 2023 Everything related to the 2023 Advent Calendar Proposal Accepted labels Oct 24, 2023
@oalders
Copy link
Contributor

oalders commented Oct 24, 2023

That's quite succinct. I look forward to the article!

@ktown007
Copy link
Contributor Author

I added naughty.md to the gist. This could have a part 2 with Planet Scale db and a part 3 with cloud docker edge deploy.

@oalders
Copy link
Contributor

oalders commented Oct 26, 2023

Multi-part articles are encouraged this year. That sounds like a great idea.

@ktown007
Copy link
Contributor Author

added v2.list.mustache and v2.todo.pl to use planetscale mysql db in place of the array.

@ktown007
Copy link
Contributor Author

ktown007 commented Nov 2, 2023

I created a Dockerfile and launched on fly.io with the planetscale db. It works! Cold start is 1.5 seconds.

@oalders
Copy link
Contributor

oalders commented Nov 2, 2023

When you're ready, feel free to create a pull request for the article.

@ktown007
Copy link
Contributor Author

I put the files here: https://github.com/ktown007/todoapp
with a free planetscale.com and fly.io accounts hosting is really simple and quick.

@oalders
Copy link
Contributor

oalders commented Dec 3, 2023

What do you think about moving the todoapp repo to the perladvent org and me giving you permissions on the repo in the new location? My concern is about linking to resources that we have no control over. If it's in the org, then we'll always know where to find it.

@ktown007
Copy link
Contributor Author

ktown007 commented Dec 3, 2023

no problem, re-organize it. I did this as a response the complex to do app tutorials out there. I hope this code provides a base to help someone build on it.

@oalders
Copy link
Contributor

oalders commented Dec 3, 2023

Great! We now need to convert this to an incoming article so that we can merge it and schedule a publish date. The instructions for that are at https://github.com/perladvent/Perl-Advent/#authors

@oalders
Copy link
Contributor

oalders commented Dec 3, 2023

Oof. Please ignore. I'm juggling a lot of PRs here. :)

@oalders
Copy link
Contributor

oalders commented Dec 7, 2023

Closed via #307

@oalders oalders closed this as completed Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2023 Everything related to the 2023 Advent Calendar Article an article proposal In Review Proposal Accepted
Projects
None yet
Development

No branches or pull requests

2 participants