Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gentics/mesh-express-example
Gentics Mesh Express Example
https://github.com/gentics/mesh-express-example
Last synced: 4 days ago
JSON representation
Gentics Mesh Express Example
- Host: GitHub
- URL: https://github.com/gentics/mesh-express-example
- Owner: gentics
- Created: 2017-01-10T11:27:39.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-10T09:36:11.000Z (about 7 years ago)
- Last Synced: 2024-11-08T12:17:03.377Z (about 2 months ago)
- Language: HTML
- Homepage: http://getmesh.io/Blog/Getting+started+with+Express+and+the+API-first+CMS+Gentics%20Mesh
- Size: 15.6 KB
- Stars: 0
- Watchers: 23
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gentics Mesh Express Example
This example shows how to use [Gentics Mesh](https://getmesh.io) in combination with [Express](http://expressjs.com/).
The Gentics Mesh GraphQL API is used to located the requested content. The JSON information of that content is used to render various [Nunjucks](https://mozilla.github.io/nunjucks/) templates.
## Getting Started
```
# Clone example project
git clone [email protected]:gentics/mesh-express-example.git
cd mesh-express-example# Install needed dependencies
npm install# Download Gentics Mesh from https://getmesh.io/Download and start it
java -jar mesh-demo-0.9.xx.jar# Start the express server
node index.js# Access http://localhost:3000 in your browser
```## Other variations of this demo
The variations are located in different branches within this repo.
* [GraphQL](https://github.com/gentics/mesh-express-example/tree/graphql) - `master` - This example will use anonymous access and load the contents via GraphQL.
* [Basic auth](https://github.com/gentics/mesh-express-example/tree/basic-auth) - `basic-auth` - This example will use basic auth to authenticate the requests and use the REST API to load the contents.
* [Anonymous access](https://github.com/gentics/mesh-express-example/tree/anonymous-access) - `anonymous-access` - This example will use no authentication and thus use the anonymous access funtionality of Gentics Mesh. The contents will be loaded via the WebRoot REST endpoint.