Junák - český skaut
We are a part of the largest non-formal educational NGO for children and youth in the Czech Republic Junák - český skaut.
This repo contains the website for scouts from Prague - capital city of the Czech Republic - praha.skauting.cz (czech only).
All contributors are welcome. Send me an e-mail to email@example.com.
All issue reports and feature requests are welcome to.
git clone firstname.lastname@example.org:DNepovim/kraj-praha.git cd kraj-praha composer install npm install mango dev
- Create a new database
- Create your
- Make directories
public/wp-content/*writeable for web process
Use Docker for local development
Install Docker and run
docker-compose up -d.
Database access is configured in
app- Nette MVC application
config- All configuration in one place
docker- Docker server config files
public- Public directory to be set as document_root dir
assets- compiled theme assets, do not edit them here
wp-content- WP content directory
wp-core- WP distribution installed via composer
theme- main WP theme with all templates and original assets
vendor- composer packages
You are going to spent the most of your time in the
theme directory. Follow these code architecture instructions to avoid a loss of your sanity:
index.phpand other WP template files as controllers (php code only). Controller should define and fill a context for an actual template.
- Use templates
views/*.latteas views. All the HTML chunks belong here. Work with given context only and do not execute unnecessary php code.
- Assets source directories are
imagesand the mango-cli compiles them to the
Manage WP plugins
composer install wpackagist-plugin/PLUGINNAME
Installed plugins are used as mu-plugins, which cannot be disabled or removed from administration. Beware: not all plugins can work that way, especially ones that need some sort of activation initialization steps.
Applications deployed to production servers cannot install, update, or remove plugins at all. All changes must be tested, versioned and properly deployed instead.