A very basic project skeleton for hypress projects. The main goal is to keep as much as dependencies away from the host machine.
The base project skeleton for hypress driven WordPress projects.
This skeleton can be generated with the yeoman hypress generator.
Run
brew install cask
brew cask install virtualbox vagrant
vagrant plugin install vagrant-hostmanager
You need a copy of all project files. Download it via github or just use the yeoman hypress generator.
To bring your development stack up, just start the vagrant box.
vagrant up
If you are using Docker, run
docker-compose up
Endpoint | URL |
---|---|
Frontend | http://hypress.local |
Backend | http://hypress.local/wp-admin |
phpMyAdmin | http://hypress.local/phpmyadmin |
Docker Frontend | http://hypress.localhost |
Docker Backend | http://hypress.localhost/wp-admin |
Docker phpMyAdmin | http://hypress.localhost/phpmyadmin |
Credential | Value |
---|---|
MySQL user | hypress |
MySQL password | hypress |
MySQL database | hypress |
WordPress user | hypress |
WordPress password | hypress |
To get local https, you can utilize mkcert. Follow the link for installation instructions.
After installing mkcert and creating a local CA create a certificate for hypress.
cd .hypress/
mkcert hypress.local
If you ran vagrant up
already, you need to provision the box again.
vagrant provision
If you want to use this setup for WordPress plugin development, change the
hypress_type
variable in ./.hypress/ansible/settings.yml
from theme
to plugin
.
To create a production ready release, just run
npm run bundle
You'll find a ready to use bundle in ./dist
.
This projects is open for contributions.