{"_id":"5766d4e3f9d7020e004252d3","version":{"_id":"56e4c56ccc9b140e003e86ab","__v":4,"hasDoc":true,"project":"56e4c56bcc9b140e003e86a8","hasReference":true,"createdAt":"2016-03-13T01:42:04.131Z","releaseDate":"2016-03-13T01:42:04.131Z","categories":["56e4c56ccc9b140e003e86ac","56e5e17fd6d5513200761165","56e5e2acd1303329002ea781","56ec6dc12400d20e0075ba21"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"56e5e2acd1303329002ea781","project":"56e4c56bcc9b140e003e86a8","pages":["56ec672c2400d20e0075ba0c","56ec679a3b656b0e00d861d1","56ec67de04e8940e009664f2","56ecc61d849b230e00df43f3","56ecce4c1484f1170021d57d","56ecd4f37f94882900591943"],"version":"56e4c56ccc9b140e003e86ab","__v":6,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-03-13T21:59:08.172Z","from_sync":false,"order":1,"slug":"installation","title":"Administrator Guide"},"githubsync":"","parentDoc":null,"__v":24,"project":"56e4c56bcc9b140e003e86a8","user":"56e4c5462d90970e00af1af3","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-19T17:22:43.161Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"Requarks is using the NoSQL engine [MongoDB](https://www.mongodb.com/download-center) as its database.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"What is MongoDB?\"\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/AQLOT4T2SkuURWYKCBU8_527px-MongoDB-Logo.svg.png\",\n        \"527px-MongoDB-Logo.svg.png\",\n        \"527\",\n        \"143\",\n        \"#4bad3e\",\n        \"\"\n      ],\n      \"border\": false\n    }\n  ]\n}\n[/block]\n[MongoDB](https://www.mongodb.com/download-center) is cross-platform, open-source and highly scalable. MongoDB avoids the traditional table-based relational database structure in favor of JSON-like documents with dynamic schema. It is the most widely used document store engine in the world.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Manual Installation\"\n}\n[/block]\n1. Download [MongoDB](https://www.mongodb.com/download-center)\n2. Follow the [installation guide](https://docs.mongodb.com/manual/administration/install-community/) for your platform.\n3. Start the mongo client (mongo.exe on windows)\n4. Create a new user with dbOwner role by running the following commands:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"# Replace <database> in the command below:\\n\\nuse <database>\\n\\n# Replace <name> and <password> in the command below:\\n\\ndb.createUser({ user: \\\"<name>\\\", pwd: \\\"<password>\\\", roles: [\\\"dbOwner\\\"] })\",\n      \"language\": \"yaml\",\n      \"name\": \"Mongo Shell\"\n    }\n  ]\n}\n[/block]\n5. That's all folks!\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Cloud-based Solutions\"\n}\n[/block]\nVarious cloud providers are offering MongoDB as a service, such as:\n\n### Paas - Fully managed\n\n- [mLab](https://mlab.com/)\n- [Compose.io](https://www.compose.io/mongodb/)\n\n### Iaas (Infrastructure-as-a-Service)\n\n- [Amazon Web Services](https://docs.mongodb.com/ecosystem/platforms/amazon-ec2/)\n- [Microsoft Azure](https://docs.mongodb.com/ecosystem/platforms/windows-azure/)\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Connection String\"\n}\n[/block]\nDuring Requarks installation, you will need to provide a MongoDB connection string, in the following format:\n\nmongodb://**username**:**password**:::at:::**hostname**:**port**/**database** \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"# Local database named requarks, no authentication\\nmongodb://localhost/requarks\\n\\n# Local database named requarks, using username / password authentication\\nmongodb://requarkusr:p4ssW0rd@localhost/requarks\\n\\n# Remote database named requarks, using username / password authentication, on port 34567\\nmongodb://requarkusr:p4ssW0rd@ds012345.mlab.com:34567/requarks\",\n      \"language\": \"javascript\",\n      \"name\": \"Examples\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"database","type":"basic","title":"Database"}
Requarks is using the NoSQL engine [MongoDB](https://www.mongodb.com/download-center) as its database. [block:api-header] { "type": "basic", "title": "What is MongoDB?" } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/AQLOT4T2SkuURWYKCBU8_527px-MongoDB-Logo.svg.png", "527px-MongoDB-Logo.svg.png", "527", "143", "#4bad3e", "" ], "border": false } ] } [/block] [MongoDB](https://www.mongodb.com/download-center) is cross-platform, open-source and highly scalable. MongoDB avoids the traditional table-based relational database structure in favor of JSON-like documents with dynamic schema. It is the most widely used document store engine in the world. [block:api-header] { "type": "basic", "title": "Manual Installation" } [/block] 1. Download [MongoDB](https://www.mongodb.com/download-center) 2. Follow the [installation guide](https://docs.mongodb.com/manual/administration/install-community/) for your platform. 3. Start the mongo client (mongo.exe on windows) 4. Create a new user with dbOwner role by running the following commands: [block:code] { "codes": [ { "code": "# Replace <database> in the command below:\n\nuse <database>\n\n# Replace <name> and <password> in the command below:\n\ndb.createUser({ user: \"<name>\", pwd: \"<password>\", roles: [\"dbOwner\"] })", "language": "yaml", "name": "Mongo Shell" } ] } [/block] 5. That's all folks! [block:api-header] { "type": "basic", "title": "Cloud-based Solutions" } [/block] Various cloud providers are offering MongoDB as a service, such as: ### Paas - Fully managed - [mLab](https://mlab.com/) - [Compose.io](https://www.compose.io/mongodb/) ### Iaas (Infrastructure-as-a-Service) - [Amazon Web Services](https://docs.mongodb.com/ecosystem/platforms/amazon-ec2/) - [Microsoft Azure](https://docs.mongodb.com/ecosystem/platforms/windows-azure/) [block:api-header] { "type": "basic", "title": "Connection String" } [/block] During Requarks installation, you will need to provide a MongoDB connection string, in the following format: mongodb://**username**:**password**@**hostname**:**port**/**database** [block:code] { "codes": [ { "code": "# Local database named requarks, no authentication\nmongodb://localhost/requarks\n\n# Local database named requarks, using username / password authentication\nmongodb://requarkusr:p4ssW0rd@localhost/requarks\n\n# Remote database named requarks, using username / password authentication, on port 34567\nmongodb://requarkusr:p4ssW0rd@ds012345.mlab.com:34567/requarks", "language": "javascript", "name": "Examples" } ] } [/block]