In the Apis and Microservices Projects - Exercise Tracker, the provided glitch template has an option to use localhost mongodb that,
mongoose.connect(process.env.MLAB_URI || 'mongodb://localhost/exercise-track' );
If anyone knows how to set up the mongodb on the local server?
I’m also curious on what this localhost option entails.
I think you use a db on localhost if your db is on the same server as your web service/app. I doubt you can create a mongodb within glitch. I think you always have to use something external for mongo on glitch.
Thanks @seandoh, after progressing through the rest of the curriculum, it’s starting to make more sense now.