1
|
# ZČU Heatmap
|
2
|
|
3
|
- [**Nginx**](https://www.nginx.com/) - Server
|
4
|
- [**Symfony**](https://symfony.com/) - PHP framework
|
5
|
- [**MongoDB**](https://www.mongodb.com/) - Database
|
6
|
|
7
|
## 🔩 Development env
|
8
|
|
9
|
* Install **latest php**, **[🐳 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
|
* When you run `docker ps` you should see these containers: **heatmap_nginx**, **heatmap_php-fpm** and **heatmap_mongodb**
|
12
|
* 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
|
### PHP Composer
|
16
|
* For composer commands `./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 just press <kbd>F1</kbd> choose `Tasks: Run Task` and `Format`
|
22
|
## 🚀 Production env
|
23
|
* To run production env on your local machine execute this `./scripts/build.sh`
|