All Projects → ibonkonesa → symfony4-vue

ibonkonesa / symfony4-vue

Licence: other
Symfony 4 skeleton with Vue, Vuex, Vue-router and Webpack

Programming Languages

PHP
23972 projects - #3 most used programming language
Dockerfile
14818 projects
Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to symfony4-vue

meal-ticket
前端基于webpack+vue+vux,后端基于express+lowdb。有了这些,开发一个项目将会变得很轻松。
Stars: ✭ 19 (+18.75%)
Mutual labels:  vue-router
mmf-blog-vue2-pwa-ssr
mmf-blog-vue2 ssr(The service side rendering)
Stars: ✭ 65 (+306.25%)
Mutual labels:  vue-router
vue-router-view-transition
Properly time out-in transitions with scrollBehavior
Stars: ✭ 38 (+137.5%)
Mutual labels:  vue-router
vue3-chat
2021👨‍🎓Vue2/3全家桶 + Koa+Socket+Vant3前后端分离移动端聊天应用。vue+node全栈入门项目
Stars: ✭ 46 (+187.5%)
Mutual labels:  vue-router
vue-loopback
A Vue project template with Loopback framework optionally with Vuex, Vue-router, and Auth boilerplaite
Stars: ✭ 52 (+225%)
Mutual labels:  vue-router
friendly-vue-starter
Full featured Vue.js starter project for browser apps
Stars: ✭ 37 (+131.25%)
Mutual labels:  vue-router
Laravel-Vue-SPA-template
Template for Single Page Applications built with Laravel and Vue.
Stars: ✭ 22 (+37.5%)
Mutual labels:  vue-router
tailmin
Tailmin - Admin dashboard built with Vue.js and Tailwind CSS
Stars: ✭ 39 (+143.75%)
Mutual labels:  vue-router
vue-admin-work
🎉🎉🚀🚀🚀🚀vue-admin-work是一个中后台系统管理方案。使用 vue2.x 及周边全家桶工具开发而来。支持多种功能,不同角色权限🚀🚀🚀🎉🎉
Stars: ✭ 74 (+362.5%)
Mutual labels:  vue-router
vue-typescript-admin
Vue typescript 开发的基础模板,多页面支持,基础整合完毕。
Stars: ✭ 26 (+62.5%)
Mutual labels:  vue-router
shopping-cart
A vue.js project for shopping cart.
Stars: ✭ 57 (+256.25%)
Mutual labels:  vue-router
megalo-router-patch
在 megalo 中使用 vue-router 的路由写法
Stars: ✭ 15 (-6.25%)
Mutual labels:  vue-router
vue-boilerplate
Vue boilerplate
Stars: ✭ 28 (+75%)
Mutual labels:  vue-router
vue3-docs
vue中文社区,vue3 中文文档
Stars: ✭ 180 (+1025%)
Mutual labels:  vue-router
order-service
一个基于vuejs,reactjs,nodejs,socket.io的服务系统
Stars: ✭ 22 (+37.5%)
Mutual labels:  vue-router
vue-seo-friendly-spa-template
Vue.js PWA/SPA template initially scaffolded with vue-cli and configured for SEO. Makes use of prerendering and other techniques/packages in order to achieve a perfect "Lighthouse Score".
Stars: ✭ 41 (+156.25%)
Mutual labels:  vue-router
vue-jsPlumb
jsPlumb with Vue 2.【WIP】
Stars: ✭ 66 (+312.5%)
Mutual labels:  vue-router
dva-vue
🌱 Vue and dva-core based
Stars: ✭ 34 (+112.5%)
Mutual labels:  vue-router
cloud-music-mobile
This is a music player
Stars: ✭ 22 (+37.5%)
Mutual labels:  vue-router
use-routes
🚩 A router hook for not only react hooks API but also fre
Stars: ✭ 35 (+118.75%)
Mutual labels:  vue-router

symfony4-vue

Symfony 4 skeleton with Vue, Vuex, Vue-router and Webpack (and more!)

What's included

-Symfony 4.1.0 skeleton

-Docker-compose development environment

-Redis cache

-Twig, Annotations, Webserver and Maker bundles

-Encore webpack with VueLoader and SassLoader configured

-Vue, Vuex and Vue-Router

-Axios is prototyped as $http variable

Using this boilerplate

Clone this repository

$ git clone https://github.com/ibonkonesa/symfony4-vue.git 

Install composer and node dependencies

$ composer install
$ yarn install #recommended
or
$ npm install

Compile js and css files

$ ./node_modules/.bin/encore dev 

Execute built in Symfony web server

$ php bin/console server:run

It will start a server accessible at http://localhost:8080

or

$ docker-compose up

Server will be accessible at http://localhost:8888 and Redis caché will be available

Vue development

Vue files are located at /assets/js folder. Just modify these files as a regular Vue project.

I suggest you using hot-reload encore server. When a file is updated webpack will be launched automatically. Start it with this command

$ ./node_modules/.bin/encore dev --watch

Files app.js and app.css will be compiled at /public/build folder.

Default controller contains just one root route that renders this necessary files.

SassLoader is activated, so all changes on /assets/js/app.scss will be compiled too.

Axios are prototyped as $http. This service will be available at the whole Vue app.

Vuex and Vue-router are included too. Be free to add as routes and stores as you want.

UPDATES

April 2019 - Although encore server worked well with spread operator (...) while development, if you tried to build a production compilation it did not work. I have updated @symfony/webpack-encore package in order to get this working without the use of babel plugins. I also updated the assets folder skeleton to have a page oriented structure.

October 2019 - Added docker-compose file and resources to build images able to work in this environment. Added a redis cache POF. This component should be mandatory in all project developed in this century, because never was easier implementing such enhancement.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].