-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to start it? #4
Comments
Hi, I think what has happened is that MongoSkin used to bring in MongoDB with the correct version but now it does not, though I am not at all sure (have not done a proper investigation). Anyway doing a I'll have a look at upgrading this project to newer libraries and MongoDB... Database access is pretty abstracted away and you can even make it use an in-memory database by just setting an environmental variable. Anyway that should get you going. Thanks for the bug report. |
Anyway thanks for your response. Would be awesome to see updated version of this project. |
Hmm wired.
From scratch (newly checked out) I just did a `npm install` and `npm
install mongodb@1.4` and it was running 100% fine. MongoDB does some
compilation, are you on a standard x86 CPU architecture?
The other thing you can do is define the environmental variable
`DATABASE__TYPE` , perhaps in config_rc see around line 18 of app.js.
I'll do a refresh or this to update dependencies in the next few days.
Thanks
On 25 Jul 2017 8:22 pm, "Serhii Muryhin" <notifications@github.com> wrote:
npm i mongodb@1.4 generates another error:
{ Error: Cannot find module '../build/Release/bson'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous>
(/Development/SyncItBootstrap/node_modules/bson/ext/index.js:15:10)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3) code: 'MODULE_NOT_FOUND' }
Anyway thanks for your response. Would be awesome to see updated version of
this project.
I've found another bootstrap project syncit-playground, will try to start
from there.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADT1sx-j4Hz7fe2pNEuHohNjRwogARDJks5sRkB2gaJpZM4OiLKn>
.
|
Hey. (OSX. x64 CPU) |
I suspect your Mongo is listening on the Mac equivelent of a UNIX socket whereas 127.0.0.1 forces it to use a TCP socket. I've set Mongo up using Docker for a long time and there is no UNIX socket binding for me... hence why I configured it for TCP.... I'm going to re-open this so I can remember to add something to to the docs so people know they might have to tweak the config setting. Thanks again for the bug report. |
Can't manage to make it work.
Both
launch_development
&launch_production
&npm start
give me next error:Manually installing
npm i mongodb
fixes this issue, but generates next:After reading this thread I've downgraded mongoskin package to 1.3.20, and finally get:
Opening
localhost:3000
gives me page's initial state (header & button to add new todo). But one resource is loading very long -GET /js/App.js
(I'm thinking that's because on each request NodeJS is rebuilding it with Browserify). After 12s it is finally loaded, and an error in browser-console appear:I've managed to avoid this error replacing
done
withthen
.Then I clicked "Start new Todo", which was making another GET request to localhost, failing after 1 minute with an exception in the server console:
That was dead-end for me.
Any tip how to make it work?
The text was updated successfully, but these errors were encountered: