r/flask • • Oct 03 '26

Show and Tell Open Source Flask Template App with CRUD using Peewee ORM for learning

There are lots of Flask CRUD template apps on GitHub I'm sure. I've been wanting to make one myself for a while from scratch that's relatively basic and easy to modify. Most of the repos I've seen don't demonstrate all entity relationships like One To One, One to Many and Many To many.

https://github.com/TutorialDoctor/flask-template-app

The "admin" panel has custom CSS but I kept all the other views basic so you can add your own style. Still a WIP but it's mostly there

7 Upvotes

10 comments sorted by

2

u/KeyBack192 Oct 03 '26

Hey, thanks for sharing. What frontend are you using? 

2

u/TutorialDoctor Oct 03 '26

This is using jinja with Htmx. I want to add JSON endpoints so that I can have a separate frontend. I tend to go with VueJs and Tauri for desktop apps, and just VueJs or for web apps. For quick POCs I use a plain HTML file with HTMX.

1

u/KeyBack192 Oct 03 '26

What about styling? Pure CSS or something else.?. Anyway, thanks for responding. 

2

u/Aggressive_Monk_1593 Oct 09 '26

yeah im curious about that too, the readme didnt really specify

1

u/AllanSundry2020 Oct 03 '26

hi can you explain what it is for?

2

u/TutorialDoctor Oct 03 '26

I will personally use it to jumpstart my flask projects, but I'm sharing it for others to learn from or use for their own projects

1

u/AllanSundry2020 Oct 03 '26

hi thanks so just a scaffold for basic little database site. Will you add users and admin ?

2

u/TutorialDoctor Oct 03 '26

It has users and login already. Roles have crud but I just have to assign to users. I want to add permissions as well

1

u/AllanSundry2020 Oct 03 '26

thanks that's cool i will give it a try soon

1

u/Filbert-Ireine 9h ago

Are you managing the database connection lifecycle with before and after request hooks here? Always curious how different templates structure the teardown logic so connections dont leak.