Klopvaart Intranet
This repository contains the development environment and the WordPress theme for the Klopvaart Intranet.
Setup
Prerequisites
Download and setup Wordpress
- Clone this repo
git clone git@github.com:alexbuijs/knock-knock.git && cd knock-knock
- Run
cp env.example .env
and fill in values. The default is a good starting point for local development - Run
docker-compose up
- Visit http://localhost:8080 for WordPress
- Visit http://localhost:8081 for phpMyAdmin
- Create pages: 'Home', 'Agenda', 'Bewoners', 'Documentatie', 'Bewoner', 'Profiel'
- Set landing page: Instellingen -> Lezen -> Statische pagina -> Voorpagina: 'Home'
- Refresh permalinks
Development
- Run
composer install && npm install
- Run
npm start
. This runs Vite.
Build for production
- Run
npm run build
Wordpress CLI
docker compose run --rm wordpress-cli --path='web/wp' <cli command>