- To create a free MongoDB database, go to mongodb.com, click on “Try Free,” and sign up.
- Fill in the details, select “Build a new project,” choose a programming language (e.g., JavaScript), and click “Finish.”
- Select the free plan, click “Create,” enter a username and password, click “Create User,” enter your IP address (0.0.0.0/0), add a description, and click “Add entry.”
- Click “Finish” and close.
- Go to “Overview,” click “Connect,” and select “MongoDB for VS Code.”
- Copy the connection string, replace the password with the one you created, and click the “View” icon.
- To create a data store, click “Add connection,” give it a title (e.g., “Tutorial Database”), select “MongoDB” as the type, paste the connection string, and replace the password (remove the arrows).
- Click “Create data store,” enter a title , add fields, and select “Show in live chat.”
- To see the data store, go to the Unified Team Inbox, open a chat, click the “i” icon, scroll down, and view the data stores.