Revize 28926492
Přidáno uživatelem Tomáš Ballák před asi 4 roky(ů)
README.md | ||
---|---|---|
6 | 6 |
|
7 | 7 |
## 🔩 Development env |
8 | 8 |
|
9 |
* Install **latest php**, **[🐳 docker](https://www.docker.com/)** and **[📝 vscode](https://code.visualstudio.com/)**
|
|
9 |
* Install **latest php**, **[🐳 docker](https://www.docker.com/)**, **[📝 vscode](https://code.visualstudio.com/)** and **[🐍PyCharm](https://www.jetbrains.com/pycharm/)**
|
|
10 | 10 |
* Then run `./scripts/dev/build.sh` or `scripts/dev/build.bat` in the root of the project |
11 | 11 |
* When you run `docker ps` you should see these containers: **heatmap_nginx**, **heatmap_php-fpm** and **heatmap_mongodb** |
12 | 12 |
* Symfony project should be available on http://localhost:80 |
... | ... | |
18 | 18 |
* require `./scripts/composer.sh require package_name` |
19 | 19 |
### PHP Linter in vscode |
20 | 20 |
* If you want check your code style is in the right format press <kbd>F1</kbd> choose `Tasks: Run Task` and `PHP Linter` |
21 |
* If you want to format the current file just press <kbd>F1</kbd> choose `Tasks: Run Task` and `Format` |
|
21 |
* If you want to format the current file just press <kbd>F1</kbd> choose |
|
22 |
`Tasks: Run Task` and `Format` |
|
23 |
### PyCharm |
|
24 |
* First you need to set python interpeter to the containers by **following these steps** |
|
25 |
<div style="display: flex; flex-direction: row; justify-content: space-around;flex-wrap: wrap"> |
|
26 |
<div style="height: 450px; display: flex; justify-content: space-between;flex-direction: column;"> |
|
27 |
<img src="./guide/1.png" width="500px" style="display: block"/> |
|
28 |
<p style="background: red">A. Enter Settings (File/Preferences/Settings)</p> |
|
29 |
</div> |
|
30 |
<div style="height: 450px; display: flex; justify-content: space-between; flex-direction: column;"> |
|
31 |
<img src="./guide/2.png" width="500px" height="360px" style="display: block"/> |
|
32 |
<p style="background: red">B. In the left panel choose <b>Docker</b> and in <b>Image Name</b> choose <b>heatmap_py-charm</b></p> |
|
33 |
</div> |
|
34 |
<div style="height: 450px; display: flex; justify-content: space-between;flex-direction: column;"> |
|
35 |
<img src="./guide/3.png" width="500px" style="display: block"/> |
|
36 |
<p style="background: red">C. When setup is ok you will see all packages from requirements on this screen</b></p> |
|
37 |
</div> |
|
38 |
</div> |
|
39 |
|
|
40 |
* New dependencies put in **requirements.txt** and then run build `./scripts/dev/build.sh` |
|
41 |
|
|
22 | 42 |
## 🚀 Production env |
23 | 43 |
* To run production env on your local machine execute this `./scripts/build.sh` |
Také k dispozici: Unified diff
Re #7900 python3 and pip settings for container