Example SPA frontend to be used with a Laravel 8 project.
Check out the live demo at http://frex.mpalade.ro
Use admin@example.local
and password test1234
to login.
yarn
quasar dev
Notes
- This setup is using a proxy configuration for the
devServer
definition inquasar.conf.js
. Only needed for local development. - Use
admin@example.local
with passwordtest1234
to login.
Next set up the Laravel project(acting as an API) from here.
Now access the application at http://localhost:8080.
# install dependencies
yarn
# setup env
vim .quasar.env.json
## Adjust API_BASE_URL
yarn run build
# or
QENV=production quasar build
# Adjust your server configuration according to
# https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations
# For Apache(optional)
cp .htaccess dist/spa
Deploy on your server.
Note: If you use HTTPS, use the protocol in your .quasar.env.json
file.