Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #86 from strongloop/update_lb_to_3x
Browse files Browse the repository at this point in the history
Update example to use LoopBack 3.x
  • Loading branch information
0candy authored Nov 17, 2016
2 parents 090e7b3 + b457922 commit 4053322
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 14 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# loopback-example-offline-sync

**Note: This example uses `loopback@2.0.0` and `loopback-boot@2.0.0`!**

An example running LoopBack in the browser and server, demonstrating the
following features:

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@
"async": "~0.9.0",
"compression": "^1.0.9",
"cors": "^2.7.1",
"loopback": "^2.25.0",
"loopback": "^3.0.0",
"loopback-boot": "^2.12.1",
"loopback-component-explorer": "^2.1.0",
"loopback-connector-mongodb": "^1.4.1",
"loopback-datasource-juggler": "^2.0.0",
"loopback-component-explorer": "^2.1.0",
"proquint": "0.0.1",
"serve-static": "^1.10.0"
"serve-static": "^1.10.0",
"strong-error-handler": "^1.1.1"
},
"engines": {
"node": ">=0.10.0"
Expand Down
8 changes: 2 additions & 6 deletions server/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"host": "0.0.0.0",
"port": 3000,
"remoting": {
"context": {
"enableHttpContext": false
},
"context": false,
"rest": {
"normalizeHttpPath": false,
"xml": false
Expand All @@ -20,9 +18,7 @@
"limit": "100kb"
},
"cors": false,
"errorHandler": {
"disableStackTrace": false
}
"handleErrors": false
},
"legacyExplorer": false
}
4 changes: 2 additions & 2 deletions server/datasources.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"db": {
"connector": "memory",
"defaultForType": "db"
"name": "db",
"connector": "memory"
}
}
10 changes: 10 additions & 0 deletions server/middleware.development.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"final:after": {
"strong-error-handler": {
"params": {
"debug": true,
"log": true
}
}
}
}
2 changes: 1 addition & 1 deletion server/middleware.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"loopback#urlNotFound": {}
},
"final:after": {
"loopback#errorHandler": {}
"strong-error-handler": {}
}
}

0 comments on commit 4053322

Please sign in to comment.