GithubHelp home page GithubHelp logo

rohitchauhan404 / php_vue Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 322 KB

PHP and Vue boilerplate to serve your Vue application directly through a PHP enabled Apache Web Server without any build and bundle process.

JavaScript 99.86% HTML 0.14%
javascript vue vuejs php

php_vue's Introduction

PHP_VUE


PHP and Vue boilerplate to serve your Vue application directly through a PHP enabled Apache Web Server without any build and bundle process.

Put the folder in your Apache Web root and open http://localhost/php_vue

The ESM development version "vue.js" and and unminified "bulma.css" are included. On production you must replace them with their minified counterparts.

If using Vite (see below), Vite will minifiy all the project files into the dist/ folder

In https://vuejs.org/examples/ select 'Composition API' and 'HTML' to view the code.

If your Component is named GroceryItems in GroceryItems.js then it should be named grocery-items in the HTML DOM template.

For you data-array, don't use _ or - like grocery_items or grocery-items, but use groceryList because JavaScript confuses them with an expression.

FOR DEVELOPMENT AND PRODUCTION USE VITE


Install Vite with npm install

To run Vite development-server with Hot Module Replacement (this will update the browser on each code change) npm run dev

To build your project into dist/ folder npm run build

Now copy the index.html file and assets folder inside the dist/ folder, and place them inside your Apache root /var/www/html

http://localhost

php_vue's People

Contributors

rohitchauhan404 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.