Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme improvements #10

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 26 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,31 @@
# Mesh Angular Demo
# Gentics Mesh Angular Demo

This is a simple example application intended to demonstrate a few of the features of Gentics Mesh
([getmesh.io](http://getmesh.io)).
<img src="/gentics-mesh-angular-example-screenshot.png" align="center" width="100%"><br/>
This is a simple example application intended to demonstrate a few of the features of [Gentics Mesh](https://getmesh.io/)
.

All calls to the Mesh API endpoints are made from the [`MeshService`](app/mesh.service.ts). The rest of the
app logic is contained in the [app component](app/app.component.ts) file.
## How to run the example
The example is implemented with Angular 5.x and built with the [Angular CLI](https://github.com/angular/angular-cli).

The app is using Angular and built with [Angular CLI](https://github.com/angular/angular-cli). Run `ng serve`
to start a dev server at `http://localhost:4200/`, `ng build --dist` to build the project to `dist/`.
You will need a locally running instance of the [Gentics Mesh](https://getmesh.io/) demo. You can use
- docker
```
docker run -p 8080:8080 gentics/mesh-demo
```
- or download the [Gentics Mesh JAR file](https://getmesh.io/Download) and start it with
```
java -jar mesh-demo-X.X.X.jar
```
For more details check the [Administration Guide](https://getmesh.io/docs/beta/administration-guide.html).

This is intended to be an extremely simple example. Therefore the implementations
are necessarily naive. The idea is to provide a way to see the Mesh API in action and provide an example for
Once the Gentics Mesh local instance is up and running you can start the example with
`npm start` or `yarn start` which will start a dev server at [http://localhost:4200/demo](http://localhost:4200/demo).
You can also use `npm build` or `yarn build` to build the project to the `dist/` directory.

## Implementation notes and caveats
All calls to the Mesh API endpoints are made from the [`MeshDataService`](src/app/mesh-data.service.ts). You can find the configured username and password for the [Mesh API](https://getmesh.io/docs/beta/raml/) calls in that file.
Angular CLI proxy configuration can be found in [proxy.conf.js](proxy.conf.js).
The rest of the application logic is contained in the [app component](src/app/app.component.ts) file.

This example is intended to be an extremely simple. Therefore the implementation is necessarily naive. The idea is to provide a way to see the [Mesh API](https://getmesh.io/docs/beta/raml/) in action and provide an example for
interested developers to experiment with.
Binary file added gentics-mesh-angular-example-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.