I’m working on an open source VueJS web application (with user authentication). I’d like it to be as simple to set up as possible for people when they download it from my GitHub page, so I figured I could use an SQLite for a database and call PHP files in order to handle the data between the Frontend and the Database.
I searched around and the best I found for my case was this YouTube video, but I’m not entirely sure if the way the person in it sets up the PHP files is secure / correct.
For the sake of argument, let’s suppose this is my file structure:

If I want a folder like this one:

Where should I put it? Outside htdocs? Inside? If it’s the latter, am I supposed to use the “Directory Privacy” thing-y in the cPanel to restrict access to the server folder? If so, would you still be able to make HTTP requests to the PHP files - doing this, is that even secure?
Haven’t really gotten much experience with web applications. Any help would be appreciated!