mirror of https://github.com/kcal-app/kcal.git
calorie-trackerdiet-managmentfood-datafood-journalhealthmacronutrientsnutrition-informationnutrition-labelrecipesself-hosted
|
|
||
|---|---|---|
| .github | ||
| app | ||
| bootstrap | ||
| config | ||
| database | ||
| elastic/migrations | ||
| public | ||
| resources | ||
| routes | ||
| storage | ||
| tests | ||
| .editorconfig | ||
| .env.local.example | ||
| .env.prod.example | ||
| .gitattributes | ||
| .gitignore | ||
| .phpstorm.meta.php | ||
| .styleci.yml | ||
| ATTRIBUTIONS.md | ||
| LICENSE | ||
| README.md | ||
| _ide_helper.php | ||
| artisan | ||
| composer.json | ||
| composer.lock | ||
| docker-compose.yml | ||
| package-lock.json | ||
| package.json | ||
| phpstan.neon.dist | ||
| phpunit.xml | ||
| server.php | ||
| tailwind.config.js | ||
| webpack.mix.js | ||
README.md
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).