

You may also configure your connection URL - but many developers prefer not to check sensitive credentials into version control. To use MongoDB in production, edit your adapter setting in config/env/production.js: adapter: 'sails-mongo', In your config/datastores.js file, edit the default datastore configuration: default: ). Run npm install sails-mongo in your app folder.To use MongoDB in your Node.js/Sails app during development: Be sure to replace that connection URL with the appropriate string for your database. Below, 'mongodb:// /foo' refers to a locally-installed MongoDB using "foo" as the database name. Sails supports the popular MongoDB database via the sails-mongo adapter.įirst, make sure you have access to a running MongoDB server, either on your development machine or in the cloud. I also saw this 2-year old post on the C9 community forum, but they suggest to use apt-get.Edit Page Using MongoDB with Node.js/Sails.js I hope some of you can bring me some clarity.

This worked and I can check the version with mongo -version, but mongod is still an unrecognized command and I can’t pass the first tutorial of learnyoumongo. So I installed the mongodb package with sudo yum install -y mongodb.

Name and summary matches only, use “search all” for everything. Python-pymongo-gridfs.x86_64 : Python GridFS driver for MongoDB

Python-pymongo.x86_64 : Python driver for MongoDB Python-mongoengine.noarch : A Python Document-Object Mapper for working with MongoDB Pymongo-gridfs.x86_64 : Python GridFS driver for MongoDB Pymongo.x86_64 : Python driver for MongoDB Php-pecl-mongo.x86_64 : PHP MongoDB database driver Mongodb.x86_64 : High-performance, schema-free document-oriented database Golang-github-go-mgo-mgo-devel.x86_64 : The MongoDB driver for Go Golang-github-go-mgo-mgo-devel.i686 : The MongoDB driver for Go Nodejs-mongodb.noarch : A node driver for MongoDB Mongodb-server.x86_64 : MongoDB server, sharding server and support scripts Libmongodb-devel.x86_64 : MongoDB header files Libmongodb-devel.i686 : MongoDB header files Libmongodb.x86_64 : MongoDB shared libraries Libmongodb.i686 : MongoDB shared libraries I tried yum search mongodb and got these results So apparently there is no mongodb-org package. Loaded plugins: priorities, update-motd, upgrade-helperġ034 packages excluded due to repository priority protections Apparently the Amazon Linux seems to be CentOS based and thus doesn’t operate with the apt-get command but instead with the yum command. I googled a bit and I reached this thread on StackOverflow. So apparently apt-get isn’t a proper command for my C9 environment. I recently wanted to start the MongoDB tutorial, but I get stuck at the very beginning - I fail to install MongoDB.
