Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 6f6156eb

Přidáno uživatelem Tomáš Ballák před asi 4 roky(ů)

Feature #7743 Setup for development environment

Zobrazit rozdíly:

README.md
1 1
# ZČU Heatmap
2 2

  
3 3
- [**Nginx**](https://www.nginx.com/) - Server
4
- [**Symfon**](https://symfony.com/) - PHP framework
4
- [**Symfony**](https://symfony.com/) - PHP framework
5 5
- [**MongoDB**](https://www.mongodb.com/) - Database
6 6

  
7
## 🚀 Installation
7
## 🔩 Devlopment env
8 8

  
9
* Install 🐳 **[docker](https://www.docker.com/)**
10
* Then run `./build.sh` or `build.bat` in the root of the project
9
* 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 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> 
12 15
### PHP Composer
13
* For composer install execute `./composer-install.sh` or `composer-install.bat`
16
* 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`

Také k dispozici: Unified diff