diff --git a/Gruntfile.js b/Gruntfile.js index 9b1eb987..796cfaa0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -178,7 +178,7 @@ module.exports = function (grunt) { json_server: { stub: { options: { - port: 3002, + port: 3000, db: 'examples/blog/stub-server.json', keepalive: false } diff --git a/README.md b/README.md index cd55baee..b51392dc 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,11 @@ Your application should use a `ui-view`:
``` +### Dependency-less Version + +ng-admin is also available without compiled dependencies : `bower_components/ng-admin/build/ng-admin-only.min.js`. +Please refer to the `examples/blog/index-deps.html` file to get the list of required dependencies to include. + ## Example Configuration We chose to define the entities & views directly in JavaScript to allow greater freedom in the configuration. diff --git a/examples/blog/config.js b/examples/blog/config.js index 0818a137..554a7030 100644 --- a/examples/blog/config.js +++ b/examples/blog/config.js @@ -42,13 +42,13 @@ }); var admin = nga.application('ng-admin backend demo') // application main title - .baseApiUrl('http://localhost:3002/'); // main API endpoint + .baseApiUrl('http://localhost:3000/'); // main API endpoint // define all entities at the top to allow references between them var post = nga.entity('posts'); // the API endpoint for posts will be http://localhost:3000/posts/:id var comment = nga.entity('comments') - .baseApiUrl('http://localhost:3002/') // The base API endpoint can be customized by entity + .baseApiUrl('http://localhost:3000/') // The base API endpoint can be customized by entity .identifier(nga.field('id')); // you can optionally customize the identifier used in the api ('id' by default) var tag = nga.entity('tags') diff --git a/examples/blog/stub-server.json b/examples/blog/stub-server.json index 602b8dd1..33ab08f0 100644 --- a/examples/blog/stub-server.json +++ b/examples/blog/stub-server.json @@ -243,7 +243,7 @@ "id": 11, "post_id": 1, "author": "Logan Schowalter", - "body": "I don't want to be?' it asked. 'Oh, I'm not Ada,' she said, 'and see whether it's marked \"poison\" or not'; for she had asked it aloud; and in despair she put her hand on the end of the.", + "body": "I don't want to be?' it asked. 'Oh, I'm not Ada,' she said, 'and see whether it's marked \"poison\" or not'; for she had asked it aloud; and in despair she put her hand on the end of the.", "created_at": "2012-08-05" } ], @@ -274,4 +274,4 @@ "published": 1 } ] -} \ No newline at end of file +}