Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gentics/mesh-silex-example
Gentics Mesh Silex Example
https://github.com/gentics/mesh-silex-example
Last synced: about 2 months ago
JSON representation
Gentics Mesh Silex Example
- Host: GitHub
- URL: https://github.com/gentics/mesh-silex-example
- Owner: gentics
- Archived: true
- Created: 2016-09-14T18:10:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-16T21:46:49.000Z (over 5 years ago)
- Last Synced: 2024-08-04T13:03:14.981Z (5 months ago)
- Language: HTML
- Homepage: http://getmesh.io/Blog/Building+an+API-first+Web+App+with+Gentics+Mesh+and+the+PHP+Microframework+Silex
- Size: 17.6 KB
- Stars: 1
- Watchers: 25
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Silex EOL
Silex has reached the EOL and is no longer being developed. https://symfony.com/blog/the-end-of-silex
This example will be archived. A good alternative for Silex would be Symfony.
# Gentics Mesh Silex Example
This example shows how to use [Gentics Mesh](https://getmesh.io) in combination with the [Silex](https://silex.symfony.com/) PHP routing framework.
The Gentics Mesh GraphQL API is being used to locate the requested content. That content is used to render various [Twig](http://twig.sensiolabs.org/) templates.
## Getting Started
```
# Clone example project
git clone [email protected]:gentics/mesh-silex-example.git
git checkout graphql-example
cd mesh-silex-example# Install needed dependencies
composer update# Download Gentics Mesh from https://getmesh.io/Download and start it
java -jar mesh-demo-0.9.xx.jar
```### Run with PHP 7
The example can also be run directly using the embedded PHP server.
```
php -S localhost:3000 src/index.php
```### Run with Docker
You can start the docker container to run the example using the ```./dev.sh``` script. Once started you should be able to access the demo example via http://localhost:3000 in your browser.
### Run with Apache
Alternatively you can also deploy the PHP example on your Apache Webserver installation. You may use the provided site configuration file ```mesh-demo.conf``` for your apache.