You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,12 +51,20 @@ Then generate your first API endpoint
51
51
$ gulp service --name yourFirstEndpoint // This command will create a CRUD endpoint for yourFirstEndpoint.
52
52
```
53
53
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
54
+
With the `gulp service` command, you have the option of using either Mongo DB, an SQL compartible DB 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` option for the API to the `gulp service `; for an SQL compartible db, pass the `sql` option. See an example below
55
+
56
+
### Using an API as a DB
55
57
56
58
```
57
59
$ gulp service --name yourEndpointWithAPIAsDB --baseurl http://localhost:8080 --endpoint users
58
60
```
59
61
62
+
### Using an SQL compartible database
63
+
64
+
```
65
+
$ gulp service --name yourEndpointWITHSQL --sql
66
+
```
67
+
60
68
> Note: You can use -n instead of --name, -b instead of --baseurl, -e instead of --endpoint
0 commit comments