Skip to content

Commit f02995e

Browse files
committed
updated readme and fixed travis
1 parent b35536c commit f02995e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ before_script:
1919
- npm install -g gulp mocha gulp-cli codecov istanbul
2020
install:
2121
- npm install
22-
- npm start
22+
- npm start >> femi.log . &
2323
script:
2424
- >-
2525
istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ Then generate your first API endpoint
5151
$ gulp service --name yourFirstEndpoint // This command will create a CRUD endpoint for yourFirstEndpoint.
5252
```
5353

54+
With the `gulp service` command, you have the option of using either Mongo DB for your database model or using an API generated by this Express Generator as a database model. To use an API as a database you can pass the `baseurl` and the `endpoint` for the API to the `gulp service `. See an example below
55+
56+
```
57+
$ gulp service --name yourEndpointWithAPIAsDB --baseurl http://localhost:8080 --endpoint users
58+
```
59+
60+
> Note: You can use -n instead of --name, -b instead of --baseurl, -e instead of --endpoint
61+
5462
Try out your new endpoint.
5563

5664
Start the app

0 commit comments

Comments
 (0)