Skip to content
Open
Show file tree
Hide file tree
Changes from 5 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
30 changes: 21 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
# 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 for that:
```
docker run -p 8080:8080 gentics/mesh-demo
```
Check the [documentation](https://getmesh.io/docs/beta/administration-guide.html#_run_with_docker) for details and other options.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also include the non-docker instructions

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 9552f8e


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 run-script start` which will start a dev server at [http://localhost:4200/](http://localhost:4200/).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the URL would be http://localhost:4200/demo (but I'll check back, as per this comment)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 9552f8e

You can also use `npm run-script start` to build the project to the `dist/` directory.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> npm start / yarn start serves the project, npm run build / yarn build builds the project to dist/

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 9552f8e


## 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.