Closed hasnainmcs closed 10 years ago
The best way to run on Windows is probably running Genghis.php under WAMP.
Thanks for your response .. i am facing that issue after installation monogdb by this command "npm install sails-mongo" after that when i start db by this command "monogod" its no work and when i start the server then its show error like image that i attache ..
my local.js is like that ..
environment: process.env.NODE_ENV || 'development',
adapters:{
'default': 'mongo',
mongo: {
module: 'sails-mongo',
host: 'localhost',
database: 'test',
schema: true,
user: '',
paswsword: ''
},
}
sails-mongo just MongoDB adapter for Sails.js, if you want to install MongoDB on windows, please reference Install MongoDB on Windows
I'm not entirely sure what any of this has to do with Genghis...
I think hasnainmcs misunderstanding Genghis's purpose.
Sails.js is realtime MVC framework for Node.js and nothing to do with Genghis.
@hasnainmcs:
CalvertYang : i already install mongoDb packeg by this command "npm install sails-mongo" .. i am doing same as it like that youtube toturial .. www.youtube.com/watch?v=G4-fm_h8z-0 in this toturial he install mongo by making local.js .. i do same as it is after installation when i run command "mongod" for starting database then its not work .. and when i start the server then it show same error as image .. when i remove 'default': 'mongo' from my adapter then its work fine but this time it not used mongo db .. leave for now genghisapp but need to fix first monogdb ..
in this video everything works fine when i do same like that then it shows that error . i don't understand what i need to fix for this error ..
when i remove this works fine adapters:{
'default': 'mongo',
mongo: { module: 'sails-mongo', host: 'localhost', database: 'test', schema: true,
user: '', paswsword: '' },
}
and when i add then same error .
bobthecow : you can see in this toturial Ep: 11 he used genghisapp for view database and management ..
but before using genghisapp we need to run monogDB first ..
npm install sails-mongo
does not install MongoDB.
It just installs something so that Sails.js can talk to MongoDB.
You can't run mongod
because you still haven't installed MongoDB.
If you look at that tutorial, he types npm install sails-mongo
in his terminal window at 2:00. Pause it and look at the other tab. He's running mongod
in the next tab. He already has MongoDB installed, but doesn't cover installation in that tutorial.
@hasnainmcs:
The command npm install sails-mongo
only install MongoDB adapter for Sails.js
You need to install MongoDB first, so that Sails.js can connect to MongoDB via sails-mongo
After installing MongoDB you need to add MongoDB directory to the environment variables, so that you can run 'mongod' at windows prompt. After running 'mongod', open an other prompt and run your sails app.
How to install genghisapp in windows ? i wana to use it on my sails.js framework .. which command work for windows ?
http://sailsjs.org/#!