I'm looking for a start file structure for a website that holds a Angular front-end and an Php Slim Api.
My current setup is like
- index.html = Sngular start point
- api/
- index.php = Slim start point
- .htaccess = redirects http://domain/api/* to index.php
- (remain folders and files of the php slim api)
- app/
- app.modules.js, app.routes.js = main js angular
- (remain folders and files of the angular website)
- vendor/
- node_modules/
- bower_modules/
- packages.json, composer.json, gulpfile.js = config files for tools
It works as I want: the index.html starts the angular website and all my api calls go under "http://domain/api/*" but it looks messy and I could not found a better structure for this project.
One solution is to store vendor, node_modules and bower_modules in a folder up the 'public_html' and leave just index.html, app and api in the 'public_html' but I can't do that in my host.