/example-frontend

Example Quasar app to be used with Laravel 8 projects

Primary LanguageJavaScriptMIT LicenseMIT

Example Frontend (example-frontend)

Example SPA frontend to be used with a Laravel 8 project.

Demo

Check out the live demo at http://frex.mpalade.ro

Use admin@example.local and password test1234 to login.

Local setup

Install the dependencies

yarn

Start the app in development mode

quasar dev

Notes

  • This setup is using a proxy configuration for the devServer definition in quasar.conf.js. Only needed for local development.
  • Use admin@example.local with password test1234 to login.

Almost there

Next set up the Laravel project(acting as an API) from here.

Now access the application at http://localhost:8080.

Deployment in production

Setup

# install dependencies
yarn

# setup env
vim .quasar.env.json
## Adjust API_BASE_URL

Build

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.