[doc] Update pip wheel, setuptools, pip packages

fix-devenv
Martin Rey 2020-09-22 17:13:25 +02:00
parent 07eaf4e573
commit e72816d4c4
Signed by untrusted user who does not match committer: mrey
GPG Key ID: 4EAFAF039839B334
2 changed files with 7 additions and 6 deletions

View File

@ -8,13 +8,14 @@
1. Install `python>=3.8`
2. Create a virtual environment with `python3 -m venv .venv`
3. Activate your dev environment with `source .venv/bin/activate`
4. Install with `pip install .`
5. Install development dependencies with `pip install tox black`
6. Add git-hook to run test and stylecheck before commmit with
4. Update pip packages with `pip install -U pip setuptools wheel`
5. Install with `pip install .`
6. Install development dependencies with `pip install tox black`
7. Add git-hook to run test and stylecheck before commmit with
`ln -s ../../git-hooks/pre-commit .git/hooks/pre-commit`
7. Add git-hook to check commmit message format with
8. Add git-hook to check commmit message format with
`ln -s ../../git-hooks/commit-msg .git/hooks/commit-msg`
8. Turn off production mode: `sudo su -c 'echo "production = 0" >> /etc/kibicara.conf'`
9. Turn off production mode: `sudo su -c 'echo "production = 0" >> /etc/kibicara.conf'`
#### Cheatsheet

View File

@ -19,7 +19,7 @@ export PATH="$PATH:$PIP_PACKAGES/bin"
### Build backend on the server
- Clone the repository: `git clone https://github.com/acipm/kibicara`
- Install backend: `cd kibicara && pip install --user .`
- Install backend: `cd kibicara && pip install -U --user pip setuptools wheel && pip install --user .`
### Build frontend on your local machine
Since Angular CLI is quite bloaty and your server may don't have enough resouces, we recommend to build the frontend locally and copying it onto the server. The same steps can be used on the server if it has enough resources.