|
1 | | -# Procollab backend service |
| 1 | +# Procollab Backend |
2 | 2 |
|
3 | | -## Usage |
| 3 | +Backend API для продукта Procollab. |
4 | 4 |
|
5 | | -### Clone project |
| 5 | +## Стек |
6 | 6 |
|
7 | | -📌 `git clone https://github.com/procollab-github/api.git` |
| 7 | +- Python |
| 8 | +- Django |
| 9 | +- Django REST Framework |
| 10 | +- Channels |
| 11 | +- Celery |
| 12 | +- PostgreSQL |
| 13 | +- Redis |
8 | 14 |
|
9 | | -### Create virtual environment |
10 | | - |
11 | | -🔑 Copy `.env.example` to `.env` and change api settings |
12 | | - |
13 | | -### Install dependencies |
14 | | - |
15 | | -* 🐍 Install poetry with command `pip install poetry` |
16 | | -* 📎 Install dependencies with command `poetry install` |
17 | | - |
18 | | -### Accept migrations |
19 | | - |
20 | | -🎓 Run `python manage.py migrate` |
21 | | - |
22 | | -### Run project |
23 | | - |
24 | | -🚀 Run project via `python manage.py runserver` |
25 | | -## For developers |
26 | | - |
27 | | -### Install pre-commit hooks |
28 | | - |
29 | | -To install pre-commit simply run inside the shell: |
| 15 | +## Базовые команды |
30 | 16 |
|
31 | 17 | ```bash |
32 | | -pre-commit install |
33 | | -``` |
34 | | - |
35 | | -To run it on all of your files, do |
36 | | - |
37 | | -```bash |
38 | | -pre-commit run --all-files |
39 | | -``` |
40 | | - |
41 | | -## Troubleshooting |
42 | | - |
43 | | -## Errors caused by weasyprint |
44 | | - |
45 | | -### MacOS |
46 | | - |
47 | | -Error: |
48 | | -``` |
49 | | -OSError: cannot load library 'pango-1.0-0': dlopen(pango-1.0-0, 0x0002): tried: 'pango-1.0-0' (no such file), '/System/Volumes/Preboot/Cryptexes/OSpango-1.0-0' (no such file), '/Users/yakser/.pyenv/versions/3.11.9/lib/pango-1.0-0' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/yakser/.pyenv/versions/3.11.9/lib/pango-1.0-0' (no such file), '/opt/homebrew/lib/pango-1.0-0' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/pango-1.0-0' (no such file), '/usr/lib/pango-1.0-0' (no such file, not in dyld cache), 'pango-1.0-0' (no such file), '/usr/local/lib/pango-1.0-0' (no such file), '/usr/lib/pango-1.0-0' (no such file, not in dyld cache). Additionally, ctypes.util.find_library() did not manage to locate a library called 'pango-1.0-0' |
50 | | -``` |
51 | | - |
52 | | -Fix: |
53 | | - |
54 | | -```shell |
55 | | -brew install weasyprint |
56 | | -``` |
57 | | - |
58 | | -### Windows |
59 | | - |
60 | | -Error: |
| 18 | +poetry install |
| 19 | +poetry run python manage.py migrate |
| 20 | +poetry run python manage.py runserver |
| 21 | +poetry run python manage.py test |
61 | 22 | ``` |
62 | | -OSError: cannot load library 'gobject-2.0-0': error 0x7e. Additionally, ctypes.util.find_library() did not manage to locate a library called 'gobject-2.0-0' |
63 | | -``` |
64 | | - |
65 | | -Fix: |
66 | | - |
67 | | -Go to [WeasyPrint docs](https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#windows) step by step install dependencies. If the error persists, add the path to the windows environment variable: `C:\msys64\mingw64\bin` |
68 | 23 |
|
| 24 | +## Документация |
69 | 25 |
|
70 | | -## [Docs](/docs/readme.md) |
| 26 | +- [Навигация по документации](docs/readme.md) |
| 27 | +- [Разработка](docs/development.md) |
| 28 | +- [Архитектура](docs/architecture.md) |
| 29 | +- [API](docs/api.md) |
| 30 | +- [Инфраструктура и деплой](docs/devops-state.md) |
| 31 | +- [Доменные модули](docs/modules/readme.md) |
0 commit comments