https://github.com/trydirect/symfony4-restful
RESTful API template based on Symfony 4 + MySQL + docker-compose.yml
https://github.com/trydirect/symfony4-restful
docker docker-compose-development docker-compose-files docker-compose-lamp docker-compose-template dockerfiles php symfony4 symfony4-api synfony
Last synced: 3 months ago
JSON representation
RESTful API template based on Symfony 4 + MySQL + docker-compose.yml
- Host: GitHub
- URL: https://github.com/trydirect/symfony4-restful
- Owner: trydirect
- Created: 2019-03-14T09:03:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-09-30T20:28:35.000Z (over 3 years ago)
- Last Synced: 2023-03-09T23:33:12.936Z (about 3 years ago)
- Topics: docker, docker-compose-development, docker-compose-files, docker-compose-lamp, docker-compose-template, dockerfiles, php, symfony4, symfony4-api, synfony
- Language: PHP
- Homepage:
- Size: 7.15 MB
- Stars: 7
- Watchers: 5
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Security: SECURITY.md
Awesome Lists containing this project
README
[](https://travis-ci.com/trydirect/symfony4-restful)




[](https://gitter.im/try-direct/community)
# Symfony4-RESTful development template
RESTfull API development template based on Symfony 4 for development purpose
## Stack includes
* 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
## Note
Before installing this project, please, make sure you have installed docker and docker-compose
To install docker execute:
```sh
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sh get-docker.sh
$ pip install docker-compose
```
## Installation
Clone this project into your work directory:
```sh
$ git clone https://github.com/trydirect/symfony4-restful.git
```
Then build it via docker-compose:
```sh
$ cd symfony4-restful
$ docker-compose up -d
```
## Configuration
```
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"}
```
## Quick deployment to cloud
##### Amazon AWS, Digital Ocean, Hetzner and others
[
](https://try.direct/server/user/deploy/InN5bWZvbnk0LXJlc3RmdWx8NnwxOCI.EAoFeA.umf6rDAsIUL624SeCMLSJFAdLgY/)
# Contributing
1. Fork it (https://github.com/trydirect/symfony4-restful/fork)
2. Create your feature branch (git checkout -b feature/fooBar)
3. Commit your changes (git commit -am 'Add some fooBar')
4. Push to the branch (git push origin feature/fooBar)
5. Create a new Pull Request
# Support Development
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2BH8ED2AUU2RL)