The purpose of this script is to load restaurant data into a MongoDB Atlas database using mongorestore
.
Getting Started:
- Clone/download repository
- Create a MongoDB Atlas cluster
- On the Clusters page, press the Metrics button under your cluster name and get the fully qualified domain name (FQDN) of your primary node (the primary node can easily be identified by a black P icon)
- Edit the restore.sh file:
-
PRIMARY="Primary Server:27017"
: here you need to put the FQDN of your MongoDB Atlas primary node. -USERNAME
: enter your Atlas admin username (from the MongoDB Users tab of your MongoDB Atlas cluster) -PASSWORD
: enter you your Atlas admin password - Run command
bash restore.sh