Setup local development
Last updated
Was this helpful?
Last updated
Was this helpful?
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 .
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 .
Install or MySQL.
composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
yarn install --frozen-lockfile
cp .env.example .env
and configure .env
file
php 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 locally
Configure and run a queue (php artisan queue:listen --queue=high,low,default
)
yarn build
to generate the proper JS and CSS files
yarn dev
and head to your browser to play with Monica