mirror of https://github.com/kcal-app/kcal.git
1.6 KiB
1.6 KiB
kcal – the personal food nutrition journal
Development
Laravel Sail
Prerequisites
-
Clone the repository.
git clone https://github.com/kcal-app/kcal.git -
Move in to the cloned folder.
cd kcal -
Install development dependencies.
composer install -
Create a local
.envfile.cp .env.local.example .envNote: the default
APP_URLsetting ishttp://127.0.0.1. If you have dnsmasq or something similar configured for thetestdomain you can change this tohttp://kcal.test. -
Generate an app key.
touch .env php artisan key:generate -
Run it! ⛵
vendor/bin/sail up -d -
(On first run) Run migrations.
vendor/bin/sail artisan migrate vendor/bin/sail artisan elastic:migrate -
(On first run) Create the initial user.
vendor/bin/sail artisan db:seed --class UserSeederThe default username and password is
admin@kcal.test.
Once the application finishing starting, navigate to http://127.0.0.1:8080 (or http://kcal.test:8080 if configured).