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-autoloader
yarn install --frozen-lockfile
cp .env.example .env
and configure.env
filephp 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 -vvv
Optional: 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 build
to generate the proper JS and CSS filesyarn dev
and head to your browser to play with Monica
Last updated