Database
Requarks is using the NoSQL engine MongoDB as its database.
What is MongoDB?
MongoDB 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.
Manual Installation
- Download MongoDB
- Follow the installation guide for your platform.
- Start the mongo client (mongo.exe on windows)
- Create a new user with dbOwner role by running the following commands:
# Replace <database> in the command below:
use <database>
# Replace <name> and <password> in the command below:
db.createUser({ user: "<name>", pwd: "<password>", roles: ["dbOwner"] })
- That's all folks!
Cloud-based Solutions
Various cloud providers are offering MongoDB as a service, such as:
Paas - Fully managed
Iaas (Infrastructure-as-a-Service)
Connection String
During Requarks installation, you will need to provide a MongoDB connection string, in the following format:
mongodb://username:password@hostname:port/database
# Local database named requarks, no authentication
mongodb://localhost/requarks
# Local database named requarks, using username / password authentication
mongodb://requarkusr:p4ssW0rd@localhost/requarks
# Remote database named requarks, using username / password authentication, on port 34567
mongodb://requarkusr:[email protected]:34567/requarks
Updated less than a minute ago