Projekt

Obecné

Profil

Stáhnout (1.29 KB) Statistiky
| Větev: | Revize:
1 579f9cdd Tomáš Ballák
# ZČU Heatmap
2
3
- [**Nginx**](https://www.nginx.com/) - Server
4 6f6156eb ballakt
- [**Symfony**](https://symfony.com/) - PHP framework
5 579f9cdd Tomáš Ballák
- [**MongoDB**](https://www.mongodb.com/) - Database
6
7 9ef136b9 ballakt
## 🔩 Development env
8 579f9cdd Tomáš Ballák
9 6f6156eb ballakt
* Install **[🐳 docker](https://www.docker.com/)** and **[📝 vscode](https://code.visualstudio.com/)**
10
* Then run `./scripts/dev/build.sh` or `scripts/dev/build.bat` in the root of the project
11 ed14fe3c ballakt
* When you run `docker ps` you should see these containers: **heatmap_nginx**, **heatmap_php-fpm** and **heatmap_mongodb**
12 6f6156eb ballakt
* Symfony project should be available on http://localhost:80
13
* ❗IMPORTANT❗make sure you are developing in vscode workspace for symfony
14
  * To get into workspace click on `symfony.code-workspace` and on bottom right <kbd>Open Workspace</kbd> 
15 b591d025 ballakt
### PHP Composer
16 6f6156eb ballakt
* For composer commmands `./scripts/composer.sh` and provide args
17
  * install `./scripts/composer.sh install`
18
  * require `./scripts/composer.sh require package_name`
19
### PHP Linter in vscode
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 you use <kbd>CTRL+Shift+I</kbd> or <kbd>🖱️ RightClick</kbd> + `Format Document`
22
## 🚀 Production env
23
* To run production env on your local machine execute this `./scripts/build.sh`