Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.