https://github.com/donovan-said/tutorial-learning-mongodb
A repository to start learning mongodb
https://github.com/donovan-said/tutorial-learning-mongodb
mongodb tutorial
Last synced: 8 months ago
JSON representation
A repository to start learning mongodb
- Host: GitHub
- URL: https://github.com/donovan-said/tutorial-learning-mongodb
- Owner: donovan-said
- License: mit
- Created: 2024-02-22T16:24:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-23T11:02:00.000Z (about 2 years ago)
- Last Synced: 2025-04-06T00:24:07.130Z (about 1 year ago)
- Topics: mongodb, tutorial
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tutorial Learning MongoDB Beginner
A repository to use as a base template for other repositories and templates.
## Requirements
## Requirements
| Tool | Description |
| :------------------------------------------------------------------------------------------------ | :---------------------------------------------- |
| [Docker](https://www.docker.com/products/docker-desktop/) | This is used to launch the MongoDB container |
| [mongosh](https://www.mongodb.com/docs/mongodb-shell/) | The MongoDB Shell |
| [MongoDB for VS Code](https://marketplace.visualstudio.com/items?itemName=mongodb.mongodb-vscode) | This is used to create a playground for MongoDB |
## Run Docker MongoDB Container
```shell
docker-compose up -d
docker ps
docker volume ls
```
## Connect with Mongosh
```shell
mongosh admin -u root -p rootpassword
```
## Shutdown the Docker Container
```shell
# Shutdown without deleting all containers
docker-compose stop
# Shutdown with deleting all containers
docker-compose down
```
## VSCode MongoDb Extension
Please see the [VSCode MongoDB extension](https://code.visualstudio.com/docs/azure/mongodb)
documentation
### Connection String
```shell
mongodb://root:rootpassword@127.0.0.1/
```