I had the hardest time finding examples of how to connect to MongoDB via the command line and via a connection string in code. So I've compiled some helpful MongoDB commands here. For creating a database, creating a user, and connecting to the database.