RESTfull API development template based on Symfony 4 for development purpose
- PHP-fpm 7.4
- Rest API
- MySQL 5.7
- Redis latest
- Elasticsearch 5.4.3
- Kibana 5.4.3
- Logstash 5.4.0
- XDebug 2.9.5
- Nginx
- Supervisord
- Alpine latest
Before installing this project, please, make sure you have installed docker and docker-compose
To install docker execute:
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sh get-docker.sh
$ pip install docker-compose
Clone this project into your work directory:
$ git clone https://github.com/trydirect/symfony4-restful.git
Then build it via docker-compose:
$ cd symfony4-restful
$ docker-compose up -d
docker exec web composer install
Now, let's check the result
$ curl http://localhost/
url -i localhost
HTTP/1.1 200 OK
Server: nginx/1.14.2
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/7.2.11
Cache-Control: no-cache, private
Date: Fri, 24 May 2019 16:45:55 GMT
{"id":"s","name":"Test","description":"Description"}
- Fork it (https://github.com/trydirect/symfony4-restful/fork)
- Create your feature branch (git checkout -b feature/fooBar)
- Commit your changes (git commit -am 'Add some fooBar')
- Push to the branch (git push origin feature/fooBar)
- Create a new Pull Request