GithubHelp home page GithubHelp logo

ryanroberts / kirby4-tutorial Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wsydney76/kirby4-tutorial

0.0 0.0 0.0 12.07 MB

Port of craft4-tutorial for Kirby

Shell 0.35% JavaScript 1.24% PHP 56.37% CSS 0.61% Twig 41.44%

kirby4-tutorial's Introduction

Kirby 4 - Tutorial

This is a port of our Craft 4 Tutorial for Kirby CMS.

More of a proof of concept/learning resource than best practice, so some rough edges for now.

Trying to make it easier for devs to switch between Craft and Kirby.

  • Using Twig as templating language
  • Using proven template conventions whenever possible
  • Adding a couple of familiar twig variables/filters
  • Using Laravel Collections
  • Reorganized directory structure
  • Find custom config and translations in familiar places
  • Autocomplete in PhpStorm, including field names (needs manual config, so may be worth it or not...)
  • Demo field types that have no direct equivalent in Craft core (Object, Structure, Layout).
  • Make use of .env file for configuration

Installation

A user with credentials [email protected]/password is created during installation.

Goto the panel at /panel.

DDEV

  • Clone repository
  • cd into project directory
  • Run bash setup/install <projectname>

Manual Installation

Untested...

  • Clone repository
  • cd into project directory
  • Set up a webserver pointing to the web directory
  • Run composer install
  • Run cp .env.example .env
  • Run npm install && npm run build

Environment Variables

Just one in .env for now:

ENVIRONMENT=dev

  • enables debugging and disables twig template caching. A bit slower.

ENVIRONMENT=production

  • disables debugging and enables twig template caching. Faster, but you have to clear the storage/cache/twig folder after each update of twig templates.

Screenshots

Frontend

Screenshot home page

Screenshot post index page

Backend

Screenshot Dashboard Screenshot Dashboard

Screenshot Posts

Screenshot Post

Screenshot Post

Screenshot Layout field

TODOS

A lot.

For now, there is only a PoC level handling of responsive images. Needs more in-depth knowledge of Kirby's image handling.

kirby4-tutorial's People

Contributors

wsydney76 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.