Installing a MongoDB Service
Explore multiple methods to install the MongoDB service, including local installation, Docker, and MongoDB Atlas cloud service. Learn how to configure your MongoDB database and connect it to your Deno application, enabling data management for your GraphQL endpoint.
We'll cover the following...
We'll cover the following...
Direct Approach
The most straightforward approach is to go directly to MongoDB’s official website, and, depending on your OS, you can download and install the MongoDB service to be run locally. MongoDB offers two versions: one is free and under the community license, the other is the enterprise version.
Using Docker
This approach uses the official MongoDB image to start the service, similar to the approach with Postgres. To do so, run this Docker command:
docker run --name deno-mongo -d mongo
This ...