diff --git a/docs/install/manual.md b/docs/install/manual.md index 44f026c5e..4601c0cd8 100644 --- a/docs/install/manual.md +++ b/docs/install/manual.md @@ -21,25 +21,29 @@ Create virtual env: `python3.9 -m venv /var/www/recipes` Install Javascript Tools ```shell -apt install nodejs -npm install --global yarn +sudo apt install nodejs +sudo npm install --global yarn ``` ### Install postgresql requirements -`sudo apt install libpq-dev postgresql` +```shell +sudo apt install libpq-dev postgresql +``` ###Install project requirements !!! warning "Update" Dependencies change with most updates so the following steps need to be re-run with every update or else the application might stop working. - See section **Updating** below + See section [Updating](#updating) below. Using binaries from the virtual env: -`/var/www/recipes/bin/pip3.9 install -r requirements.txt` +```shell +/var/www/recipes/bin/pip3.9 install -r requirements.txt +``` -You will also need to install front end requirements and build them. For this navigate to the `./vue`folder and run +You will also need to install front end requirements and build them. For this navigate to the `./vue` folder and run ```shell yarn install @@ -48,7 +52,9 @@ yarn build ## Setup postgresql -`sudo -u postgres psql` +```shell +sudo -u postgres psql +``` In the psql console: @@ -73,6 +79,7 @@ wget https://raw.githubusercontent.com/vabene1111/recipes/develop/.env.template ``` Things to edit: + - `SECRET_KEY`: use something secure. - `POSTGRES_HOST`: probably 127.0.0.1. - `POSTGRES_PASSWORD`: the password we set earlier when setting up djangodb.