Skip to main content

Database Setup

Blink uses MongoDB as database. It's a NoSQL database. Integrating with MongoDB requires only connection string. You can self host your database in the cloud or you can use any managed database service provider like MongoDB Atlas.

tip

Managed MongoDB service is the quick and easy way to get started with MongoDB. MongoDB Atlas provides 512MB of free database storage, which is enough for small workload. Microsoft Azure Cosmos DB for MongoDB provides 32GB of free database storage.

Self Hosting

Managed MongoDB Service

  • Get the MongoDB connection string from your database provider.
  • Open your backend code in VS Code and open .env file, and write the MongoDB connection string there and save it.

MongoDB Connection String Example:

.env
# MongoDB URI
MONGODB_URI="mongodb+srv://*****************************************************/blink"