-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
52 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.{php,js}] | ||
block_comment_start = /** | ||
block_comment = * | ||
block_comment_end = */ | ||
|
||
[Makefile] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
# Symfony Training | ||
|
||
This is the boilerplate project for KNP Labs Symfony training. | ||
|
||
## Requirements | ||
|
||
To run this project with docker you will need: | ||
|
||
- [Docker](https://docs.docker.com/get-docker/) | ||
- [Docker Compose](https://docs.docker.com/compose/) | ||
|
||
## Installation | ||
|
||
```bash | ||
|
@@ -8,7 +17,7 @@ make start | |
|
||
### Migrations | ||
|
||
One the stack has started, you may apply Doctrine migrations once MySQL is ready. | ||
Once the stack has started, you may apply Doctrine migrations: | ||
|
||
```bash | ||
make database-create | ||
|
@@ -17,15 +26,25 @@ make database-migrate | |
|
||
You can now access the application on [localhost](http://127.0.0.1/login). | ||
|
||
### Fixtures | ||
|
||
For most of trainings, you will need some fixtures to be loaded. To do so, run: | ||
|
||
```bash | ||
make fixtures-load | ||
``` | ||
|
||
At this point, you should be able to log in and access the application (Email: `[email protected]`, Password: `admin`) | ||
|
||
## Commands | ||
|
||
| Commands | Description | | ||
|----------------- |-----------------------------------| | ||
| start | Setup and start the stack | | ||
| cp-env | Copie default .env if none exists | | ||
| build | Build Docker's container | | ||
| install-deps | Install Composer dependencies | | ||
| database-create | Create database if none exists | | ||
| database-drop | Drop database | | ||
| database-migrate | Run Doctrine migrations | | ||
| fixtures-load | Load fixtures | | ||
| Commands | Description | | ||
|------------------|-----------------------------------| | ||
| start | Setup and start the stack | | ||
| cp-env | Copie default .env if none exists | | ||
| build | Build Docker's container | | ||
| install-deps | Install Composer dependencies | | ||
| database-create | Create database if none exists | | ||
| database-drop | Drop database | | ||
| database-migrate | Run Doctrine migrations | | ||
| fixtures-load | Load fixtures | |