vuefront / module-vuefront
Vuefront api for magento2
Installs: 97
Dependents: 0
Suggesters: 0
Security: 0
Stars: 37
Watchers: 4
Forks: 9
Open Issues: 28
Language:SCSS
Type:magento2-module
Requires
- ext-json: *
- vuefront/module-blog: >=0.1.0
- vuefront/module-brands: >=0.1.0
- webonyx/graphql-php: >=0.12.6
- dev-master
- 0.3.1
- 0.3.0
- 0.2.0
- 0.1.0
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/minimist-1.2.8
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/jszip-3.8.0
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/express-4.18.2
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/qs-6.5.3
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/terser-4.8.1
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/moment-2.29.4
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/eventsource-1.1.1
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/nanoid-3.3.3
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/async-2.6.4
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/node-fetch-2.6.7
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/node-sass-7.0.0
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/validator-13.7.0
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/axios-0.21.2
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/nth-check-2.0.1
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/tmpl-1.0.5
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/lodash-4.17.21
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/ini-1.3.8
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/y18n-4.0.3
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/browserslist-4.16.7
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/ws-6.2.2
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/view/adminhtml/web/js/pax/websocket-extensions-0.1.4
This package is auto-updated.
Last update: 2024-12-04 21:46:14 UTC
README
VueFront
CMS Connect App for Magento
Show your ❤️ - give us a ⭐
Help us grow this project to be the best it can be!
VueFront is a VueJS powered CMS agnostic SPA & PWA frontend for your old-fashioned Blog and E-commerce site.
Magento empowers thousands of retailers and brands with the best eCommerce platforms and flexible cloud solutions to rapidly innovate and grow.
CMS Connect App - adds the connection between the Magento CMS and VueFront Web App via a GraphQL API.
What does it do?
This is a Magento module that connects the Magento CMS with the VueFront Web App via a GraphQL API. When installed, you will be provided with a CMS Connect URL that you will add to your VueFront Web App during setup.
Demo
Magento Blog (Megafan Blog Module)
Since Magento does not have a built-in Blog, we use Megafan Blog Module to add blog support automatically. If the Megafan Blog Module is not avalible, VueFront will ignore it.
How to install?
Php version required >= 5.5, <= 7.2 (this limitation will be removed in the future)
1. Quick Install via composer (recommended)
We recommend you to install VueFront module via composer. It is easy to install, update and maintaince.
Run the following command in Magento 2 root folder.
1.1 Install
composer require vuefront/module-vuefront
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
1.2 Upgrade
composer update vuefront/module-vuefront
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
Run compile if your store in Product mode:
php bin/magento setup:di:compile
2. Install vie copy/paste
If you don't want to install via composer, you can use this way.
- Download the latest version here
- Extract
master.zip
file toapp/code/Vuefront/Vuefront
; You should create a folder pathapp/code/Vuefront/Vuefront
if not exist. - Go to Magento root folder and run upgrade command line to install
Vuefront
:
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
Deploy VueFront Web App to Apache hosting (static website)
via VueFront Deploy service (recommended)
- Install the VueFront CMS Connect App from this repo.
- Log in or register an account with VueFront.com
- Build your first Web App
- Activate the new Frontend Web App (only avalible for Apache servers)
via ftp manually
- Install the VueFront CMS Connect App from this repo.
- Log in or register an account with VueFront.com
- Copy the CMS Connect URL
- Via Ftp create a new folder
vuefront
in the root of your OpenCart site on your hosting. - Via command line build your VueFront Web App (read more)
yarn create vuefront-app
# When promote, provide the CMS Connect URL, which you coppied at step 3.
yarn generate
- Copy all files from folder
dist
to the newly createdvuefront
folder - modify you
.htaccess
file by adding after#RewriteBase /magento/
rule the following rules:
# VueFront scripts, styles and images
RewriteCond %{REQUEST_URI} .*(_nuxt)
RewriteCond %{REQUEST_URI} !.*/vuefront/_nuxt
RewriteRule ^([^?]*) vuefront/$1
# VueFront sw.js
RewriteCond %{REQUEST_URI} .*(sw.js)
RewriteCond %{REQUEST_URI} !.*/vuefront/sw.js
RewriteRule ^([^?]*) vuefront/$1
# VueFront favicon.ico
RewriteCond %{REQUEST_URI} .*(favicon.ico)
RewriteCond %{REQUEST_URI} !.*/vuefront/favicon.ico
RewriteRule ^([^?]*) vuefront/$1
# VueFront pages
# VueFront home page
RewriteCond %{REQUEST_URI} !.*(image|.php|admin|catalog|\/img\/.*\/|wp-json|wp-admin|wp-content|checkout|rest|static|order|themes\/|modules\/|js\/|\/vuefront\/)
RewriteCond %{QUERY_STRING} !.*(rest_route)
RewriteCond %{DOCUMENT_ROOT}".$document_path."vuefront/index.html -f
RewriteRule ^$ vuefront/index.html [L]
RewriteCond %{REQUEST_URI} !.*(image|.php|admin|catalog|\/img\/.*\/|wp-json|wp-admin|wp-content|checkout|rest|static|order|themes\/|modules\/|js\/|\/vuefront\/)
RewriteCond %{QUERY_STRING} !.*(rest_route)
RewriteCond %{DOCUMENT_ROOT}".$document_path."vuefront/index.html !-f
RewriteRule ^$ vuefront/200.html [L]
# VueFront page if exists html file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*(image|.php|admin|catalog|\/img\/.*\/|wp-json|wp-admin|wp-content|checkout|rest|static|order|themes\/|modules\/|js\/|\/vuefront\/)
RewriteCond %{QUERY_STRING} !.*(rest_route)
RewriteCond %{DOCUMENT_ROOT}".$document_path."vuefront/$1.html -f
RewriteRule ^([^?]*) vuefront/$1.html [L,QSA]
# VueFront page if not exists html file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*(image|.php|admin|catalog|\/img\/.*\/|wp-json|wp-admin|wp-content|checkout|rest|static|order|themes\/|modules\/|js\/|\/vuefront\/)
RewriteCond %{QUERY_STRING} !.*(rest_route)
RewriteCond %{DOCUMENT_ROOT}".$document_path."vuefront/$1.html !-f
RewriteRule ^([^?]*) vuefront/200.html [L,QSA]
Deploy VueFront Web App to Nginx hosting (static website)
Same as for apache only you are required to add the server configurations yourself and the vuefront folder has a different path of ./pub/vuefront
:
via VueFront Deploy service (recommended)
- Install the VueFront CMS Connect App from this repo.
- Log in or register an account with VueFront.com
- Build your first Web App
- Now you need to add this code to your
nginx.config
file right after theindex
directive
location ~ ^((?!image|.php|admin|catalog|\/img\/.*\/|wp-json|wp-admin|wp-content|checkout|rest|static|order|themes\/|modules\/|js\/|\/vuefront\/).)*$ {
try_files /vuefront/$uri /vuefront/$uri "/vuefront${uri}index.html" /vuefront$uri.html /vuefront/200.html;
}
via ftp manually
- Install the VueFront CMS Connect App from this repo.
- Log in or register an account with VueFront.com
- Copy the CMS Connect URL
- Via Ftp create a new folder
./pub/vuefront
of your Magento site on your hosting. - Via the command line build your VueFront Web App (read more)
yarn create vuefront-app
# When promote, provide the CMS Connect URL, which you coppied at step 3.
yarn generate
- Now you need to add this code to your
nginx.config
file right after theindex
directive
location ~ ^((?!image|.php|admin|catalog|\/img\/.*\/|wp-json|wp-admin|wp-content|checkout|rest|static|order|themes\/|modules\/|js\/|\/vuefront\/).)*$ {
try_files /vuefront/$uri /vuefront/$uri "/vuefront${uri}index.html" /vuefront$uri.html /vuefront/200.html;
}
Support
For support please contact us at Discord
Submit an issue
For submiting an issue, please create one in the issues tab. Remember to provide a detailed explanation of your case and a way to reproduce it.
Enjoy!