I want to have a strongloop example only using javascript without angular. There's no complete working example without angular for now. I want to simply include the browser.bundle.js in my index.html, then sync data from/to server side. In fact, I'm trying to replace pouchdb in my program since the couchdb seems not success in open source community.
I can't follow up this document correctly: Running Loopback in the browser
There are few steps for this but its pretty simple.
slc loopback
.server/boot/root.js
.Uncomment two lines in server/server.js
, it should look like:
...
// -- Mount static files here--
// All static middleware should be registered at the end, as all requests
// passing the static middleware are hitting the file system
// Example:
var path = require('path'); //this line is now uncommented
app.use(loopback.static(path.resolve(__dirname, '../client'))); //this line is now uncommented
...
Create index.html
in the client
dir (ie. client/index.html
) with your contents.
That should get you a basic set up with just a basic front-end working. Let me know if you have any more issues.