WordPress starter boilerplate with an improved folder structure (by Bedrock), twig template engine and webpack for compiling assets. It uses the power of wepback and Timber together to simplify your local development workflow.
This package is on development mode
1 - Create a new project with
composer create-project czernika/brocooly your-app-folder
2 - Set your own environment variables in .env
file
3 - Make sure the DocumentRoot
is set to the web
folder
See here.
4 - Install your project dependencies
npm install
5 - Now you can run
npm run watch
It will start watching your application at http://localhost:3000
. First time this will trigger WordPress installation process
See here. Work in progress
- During installation process you may see WordPress database error: Table doesn't exist error. It is appears as database is not set but you're already connected to it with
.env
file credentials. - Fatal error with
sqlite3
PHP module. No PHP downgrade allowed so the only option is to disable SQLite3 extension. - First time login by 'wp-admin' - may not redirect to admin-panel although successfully being authenticated. If login by 'wp-login.php' - no problem.
- Errors within
functions.php
bypassing maintenance mode