CCR uses Lando to manage its development environment.
- Install Lando
- Clone this repository to your local machine:
git clone https://github.com/MESH-Research/CCR
- Head into the CCR directory and run:
lando start
- Coffee. Downloading. Building. Patience. Step 3 may take approximately three to fifteen minutes to complete.
- Migrate database:
lando artisan migrate
- Once the bootstrapping process is finished, open a browser to https://ccr.lndo.site/
The stack is running yarn dev
in the node container, so editing source files should result in HMR / recompiling as needed. PHP files are served with PHP-FPM and should not require restarting the container to load changes.
- Lando generates its own CA cert, which you can add to your OS certificate store (optional, but super nice).
- Node and composer packages are updated on rebuild only. To update dependencies without rebuilding, use
lando composer install
and/orlando yarn install
. You may have to runlando restart
if node dependencies have changed. - Database migrations are not automatically applied, so you'll need to run
lando artisan migrate
to apply them as needed. - See https://ccr.meshresearch.dev/contributing/wsl.html for additional notes on developer setup under Windows Subsystem for Linux (WSL)