From 6ffad1d3c729de9ce4bdd19aa87d7577dd2fcd36 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Mon, 7 Sep 2020 19:07:47 +0200 Subject: [PATCH] Add a few instructions to the readme on how to get `grocy` running locally --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index cd2c2cd3..2b245070 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,24 @@ Just overwrite everything with the latest release while keeping the `data` direc If you run grocy on Linux, there is also `update.sh` (remember to make the script executable (`chmod +x update.sh`) and ensure that you have `unzip` installed) which does exactly this and additionally creates a backup (`.tgz` archive) of the current installation in `data/backups` (backups older than 60 days will be deleted during the update). +## How to bootstrap a development environment + +Initialize: + +``` +$ npm install +$ composer install +$ cp config-dist.php data/config.php +``` + +Start the webserver: + +``` +$ cd public/ +$ ln -sf ../node_modules node_modules +$ env GROCY_DATAPATH=$(pwd)/../data php -S localhost:3000 +``` + ## Localization grocy is fully localizable - the default language is English (integrated into code), a German localization is always maintained by me. You can easily help translating grocy at https://www.transifex.com/grocy/grocy, if your language is incomplete or not available yet.