Skip to content

Boilerplate for PHP | Vue3 | Typescript web app running in Docker

License

Notifications You must be signed in to change notification settings

jonyo/boilerplate-php-vue-ts

Repository files navigation

Boilerplate PHP | Vue SFC | TS

This is a boilerplate starter that uses:

  • Docker to run local instance
  • PHP (no framework)
  • XDebug (configured to run with VSC)
  • webpack
  • Vue 3 / Single File Components (SFC)
  • Typescript

Requirements

The last 2 could eventually be set up in the container itself but for now must be installed on the host.

Building

Docker

First, build:

docker-compose build

Then run this once:

docker-compose up

PHP

Run:

composer install

CSS / JS bundling

Run once:

npm install

Then, use npm build or npm watch to build the JS and CSS into the webroot/dist/ folder.

Paths

  • webroot/ - Put web-accessible PHP scripts (and other things) here.
  • src/ - most the code goes here (other than directly loaded PHP scripts)
    • components/ - Vue SFC components
    • css/ - global CSS (typically imported in components/App.vue)
    • ts/ - Typescripts

About

Boilerplate for PHP | Vue3 | Typescript web app running in Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published