Skip to content

pckg-app/demo-app

Repository files navigation

pckg-app/demo-app

Demo implementation of pckg framework.

Build status

Features

  • See pckg/skeleton for in-depth core feature description
  • Twig & Vue layout examples - frontend.twig & frontend.vue
  • Homepage & Contact page - homepage.vue & contact.vue
  • Vue & API routes examples - Provider/Demo.php
  • Asset registration - Demo.php
  • SEO support - Provider/Demo.php
  • Static storage (logo)
  • Static database (Projects & Clients) + API with ORM
  • Almost-zero-code Webpack & Vue setup
  • Vue, Vuex, VueRouter, ...

Start dev environment

Dev environment with system dependencies is available in schtr4jh/pckg:latest Docker image.

$ docker stack deploy demo-app docker-compose.yml

Install dependencies.

# composer install # yarn install

Create static storage directories for the application.

# php console project:init

This will create the storage folder with some mandatory subfolders not included in GIT.

Access the application

Open in web browser.

https://localhost:8072/

Directory structure

  • vendor, components and node_modules - dependency managers directories
  • www - directory that will be exposed to the internet
  • storage - directory for framework, cache, uploads, tmp and other private and public files
  • config - root project configuration
  • app/$app/config - app configuration
  • app/$app/src - app source files
  • app/$app/public - static assets (private, can be mounted to www)

Note: it is recommended to disable discovery of dependency manager directories, www and storage.

Test the application

Runs mocha + codeception tests + static code analysis.

# php console project:test

More

About

Demo implementation of pckg framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published