Projekt

Obecné

Profil

Stáhnout (1.28 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 1f77dd64 ballakt
* Install **latest php**,  **[🐳 docker](https://www.docker.com/)** and **[📝 vscode](https://code.visualstudio.com/)**
10 6f6156eb ballakt
* 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 f0509357 ballakt
* For composer commands `./scripts/composer.sh` and provide args
17 6f6156eb ballakt
  * 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 1f77dd64 ballakt
* If you want to format the current file just press <kbd>F1</kbd> choose `Tasks: Run Task` and `Format`
22 6f6156eb ballakt
## 🚀 Production env
23
* To run production env on your local machine execute this `./scripts/build.sh`