The aim of this project is to centralize a main scaffolding to be used as starter project for derivated projects. The stack is based on Worpress and to set up a new project you can use this as from Gitlab Repo to start up.
After cloning its repository:
- Go to project root directory
- Run
cp .env.sample .env && cp auth.json.sample auth.json - Edit
.envfile accordingly - Edit auth.json file, add your personal gitlab token with at least the scope
api(https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#create-a-personal-access-token) - Run
make composer-updateOR simplycomposer update, if you have composer installed - Run
make buildif it's the first time, ormake startto start the project. - Wait a bit, until WP installation done and open localhost or localhost/wp-admin (please check for the correct http port. -- default is 80)
A step-by-step guide to start (launch) the project, and start working on it.
EXAMPLE:
make startshould get you http://localhost (runs adocker-compose upwith the right file)- Run
make composer-updateto install back-end dependencies - Go to (adminer) http://localhost/db to import some seed data
- Run
npm installto install front-end dependencies - Run
npm devto start working on the front-end - Run
npm prodto create production assets (CSS/JS) make stopwill take down your containers (runs adocker-compose stopwith the right file)
⚠️ this deletes your local DB (down -v), and rebuilds everything, but:
If something doesn't work: try running make clean
- Run
make prod - Upload the theme folder to the server