Skip to content

Commit 7b3b071

Browse files
authored
Merge pull request #3 from juananrey/feature/add-readme
Adding README
2 parents e756d44 + 019d950 commit 7b3b071

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Basic Symfony Flex Project With Docker + PHPUnit + PHPCS
2+
--------------------------------------------------------
3+
4+
Basic skeleton containing just a `/_healthcheck` endpoint, and including:
5+
- Dockerized startup (with PHP-FPM + nginx, check `/docker` folder and the `README.md` in there).
6+
- PHPUnit (run `bin/phpunit` to pass the unit and functional tests).
7+
- PHPCS (symlink to `/vendor/bin/phpcs`, run `bin/phpcs` to run a code sniffer based on PSR2 standard).
8+
9+
## Requirements
10+
- Docker
11+
12+
## Installation
13+
1) On the root folder, run: `docker-compose up -d` and wait for all required packages to install.
14+
2) Get into the machine (`docker exec -ti mylocalproject-php-fpm bash`) and run a `composer install` from inside
15+
3) Go to [localhost:8000/_healthcheck](http://localhost:8000/_healthcheck), where you should be able to see this output:
16+
```json
17+
{
18+
"status": "i am ok"
19+
}
20+
```
21+
22+
Now, it is completely up to you how do you want your project to grow :)

docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ PHP-FPM + Nginx basic Docker container
44
This is a slightly tuned,basic subset
55
of what is generated by [PHPDockerIO](https://phpdocker.io), to have a minimal docker development environment.
66

7-
## How to run it
7+
## Installation
88
On the root of the project, simply type:
99
`docker-compose up -d` and it will spin up a daemon running this server on localhost, port 8000.

0 commit comments

Comments
 (0)