PURPOSE: Using Vue js with PHP to develop SPAs
NOTE: There is a lot to work on and fix before I recommend using this template. But it is still usable.
- Backend: PHP (REST API)
- Frontend: Vue js
- clone repo or use the template: https://github.com/namankumar80510/phpvue
- run
composer installto install PHP dependencies inside./api - run
npm installto install JS dependencies inside./frontend(or bun install, deno install, etc.) - serve
./public/index.phpusing PHP server or any other server (nginx, apache, caddy, etc.) - run
npm run buildto build assets (don't forget to remove index.html from the ./public/dist/ folder)