-
Notifications
You must be signed in to change notification settings - Fork 4
Readme improvements #10
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
base: master
Are you sure you want to change the base?
Changes from 5 commits
4d9fa43
84e5622
adfd075
ec6a8cf
154d190
9552f8e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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. | ||
|
|
||
| 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/). | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the URL would be
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ->
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. | ||
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 9552f8e