Skip to content

AlexandreHamm/Template-Symfony-Vue3

Repository files navigation

Template Symfony 6 + Vue 3

This is a template to get started on a new Symfony/Vue3 project, everything is already set up and good to go.

Symfony Setup

composer install

Compile and Hot-Reload for Development

symfony serve

Vue Setup

npm install

OR

yarn install

Compile and Hot-Reload for Development

npm run watch

Compile and Minify for Production

yarn run encore production

FYI

  1. Parse error: syntax error, unexpected '?'

    Create a .php-version file and simply type in your php version to fix the error

    Example : 8.1.3

  2. Database

    Change the database path in the .env file, and don't forget to add the .env file to your .gitignore

  3. Aliases

    @ refers to /{DIRECTORY}/assets path

    Can be changed or added in the webpack file using .addAliases()

    Example :

    .addAliases({
         '@': `${__dirname}/assets`,
     })
    

About

Template for a Symfony 6 + Vue 3 project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published