The dump data is not upto date. Use the following command instead
curl -X GET http://localhost:5000/api/seed-data
For windows you can also follow this video guide to set up MongoDB
For mac you can also follow this video guide to set up MongoDB
Brew commands for installing mongo.
-
Download MongoDB-community server, MongoDB toolkit & MongoDB-Compass.
-
Set up Path Enviroment Variables for mongo and mongo-toolkit.
Default directory location of mongo-server & mongo-tools
C:\Program Files\MongoDB\Server\5.0\bin
C:\Program Files\MongoDB\Tools\100\bin
To check if path variables are correctly setup, run
mongo
mongorestore
If you get
command not found
, the path variables are not setup correctly, (try restarting once before doing any further debugging after checking the path variables are correctly set.) -
Restore database from dump files
mongorestore --db {db-name} {dump_file_location}
mongorestore --db Vita ./mock-data/dump