Setup local development
These are the steps required to setup the local development.
Monica is a Laravel application. That means it requires this setup:
PHP 8.1 or newer
HTTP server with PHP support (eg: Apache, Nginx, Caddy)
Composer
MySQL
You can find more details on the Laravel documentation website.
Here are the steps that we suggest you to follow:
Install PHP and a web server like Nginx. If you are on macOS, we recommend Valet.
Install SQLite or MySQL.
composer install --no-progress --no-interaction --prefer-dist --optimize-autoloaderyarn install --frozen-lockfilecp .env.example .envand configure.envfilephp artisan key:generate --no-interaction(generates APP_KEY)touch monica.db(if you use SQLite) and add the path to DB_DATABASE
php artisan monica:setup --force -vvvOptional: generate dummy data
php artisan monica:dummy --force -vvv
Optional: make the search work:
Install and run meilisearch locally
Configure and run a queue (
php artisan queue:listen --queue=high,low,default)
yarn buildto generate the proper JS and CSS filesyarn devand head to your browser to play with Monica
Last updated
Was this helpful?