ggrin / remotestorage-example-server

very simple and basic RemoteStorage Server
1 stars 0 forks source link

use require('remotestorage-server') #1

Open michielbdejong opened 10 years ago

michielbdejong commented 10 years ago

the code from remotestorage.js is now available as an npm package - if you include it from there then it will automatically be updated when new spec versions come out or when we find bugs

ggrin commented 10 years ago

I don't understand what you mean. Inclue remotestorage-server from remotestorage.js ???

I think remotestorage.js's package.json mentions the server as devDependency

ggrin commented 10 years ago

Or do you mean that instead of require('remotestorage-example-server/remotestorage-server') it should be require('remotestorage-server'). Then I will have to think about how to use the webfinger and oauth part, but maybe it is ok when you have to include them via require('remotestorage-example-server/{webfinger,oauth}-server') .

But the idea was to be able to do :

require('remotestorage-example-server')(config)

to set up the whole example-server suite

but that wouldn't work right now.

But I think it is a good idea to make it useful for the starter-kit.

michielbdejong commented 10 years ago

i was referring to http://npmjs.org/package/remotestorage-server (i guess we cleared this on irc since)

ggrin commented 10 years ago

yes ;)