Smart-Display-Pi/README.md

1.2 KiB

Smart-Display-Pi

I'm building a smart display for the ecosystem of raspberry pi and other local web servers that I have running different Web-App projects.

This project has the new MVC project organization. Maybe someday I'll make it back into classes... but for now it's just a bunch of functions.

i'm putting all the functions that directly talk to the database in models... and then anything that does stuff with that or links together a bunch of models i'm putting under modules.Ii have a function for outputting JSON under views. I have a fancy file under includes that will include all the files under modules, models, and views. I then have an API folder where I'm putting in all the API files that actually use the modules, models, and views to do API stuff. and then I also have a helpers folder where I'm putting things I want to call with crontab.

The main benefit this has over the KITTY-MVC stuff is that KITTY-MVC doesn't nicely output JSON. Maybe I'll actually build KITTY-MVC around this current setup and make a KITTY-MVC repo. but only if i can figure out a better solution to have the modules be a meaningful data structure that loads and saves data from the database. so i can get lenting in VS-Code or something.