bobthecow / genghis

The single-file MongoDB admin app
http://genghisapp.com
MIT License
1.45k stars 165 forks source link

Installation in windows for sails #144

Closed hasnainmcs closed 10 years ago

hasnainmcs commented 10 years ago

How to install genghisapp in windows ? i wana to use it on my sails.js framework .. which command work for windows ?

http://sailsjs.org/#!

bobthecow commented 10 years ago

The best way to run on Windows is probably running Genghis.php under WAMP.

hasnainmcs commented 10 years ago

capture

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: ''
},

  }
calvertyang commented 10 years ago

sails-mongo just MongoDB adapter for Sails.js, if you want to install MongoDB on windows, please reference Install MongoDB on Windows

bobthecow commented 10 years ago

I'm not entirely sure what any of this has to do with Genghis...

calvertyang commented 10 years ago

I think hasnainmcs misunderstanding Genghis's purpose.

Sails.js is realtime MVC framework for Node.js and nothing to do with Genghis.

bobthecow commented 10 years ago

@hasnainmcs:

hasnainmcs commented 10 years ago

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 .

hasnainmcs commented 10 years ago

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 ..

bobthecow commented 10 years ago

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.

bobthecow commented 10 years ago

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.

Install MongoDB using these instructions

calvertyang commented 10 years ago

@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

ricardocarvalh0 commented 10 years ago

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.