Since I am completely fed up with Wordpress' theming system, I have been looking at alternatives for building Wordpress themes. One possibility is to use AngularJS with Wordpress as the backend. The JSON response would be provided by the WP-API plugin. This is coming together rather nicely, but I just had one question about how to structure my files.
One way is to let wordpress live on its own inside the angular app folder, like this: project app │ README.md │ index.html │ └───js │ app.js │ controllers.js │ styles │ style.css │ style.min.css │ Wordpress index.php wp-config.php etc...
The API can be reached through: http://example.com/json-api/
And the backend can be reached through: http://example.com/wordpress/wp-admin
But, this does mean that the users can simply see the normal Wordpress theme by going to http://example.com/wordpress which is of course something that I don't want.
The second possibility is to let the angular app live inside the dedicated Wordpress theme folder, like we're used to. The reason why I don't prefer this is because then the user still has to go through all of Wordpress' processes and loops, which I think are very inefficient.
Basically, the only thing that I need is the wp-admin folder and the WP-API plugin to be working. Is this possible? If not: how can I block the user from accessing the Wordpress folder, while still being able to access the wp-content/upload & wp-admin & json-api folder?
Hope the question is clear enough, after two full days of trying to figure this out it all becomes kind of hazy.