![]() ![]() Now your DB is running at url something like this username and password are the details that you’ve given when you added a user. Finally Add a User/Users who can access this Database,While Adding a user it will ask for username and password which are used to access the Database.Now a database is created with the name ‘food’,You can create a new collection of your own.After Creating your mLab Account, click on Create new button and select Single-node -> Sandbox to get the free Db and give your database a name (I’ve created a db named ‘food’ for this as an example).If you are using c9 and If you are having trouble starting your DB in C9 refer to this page Starting your Mongodb( mLab ): Mongodb://localhost:27017/my_database_name To start your DB on your own system execute the following command: # Create a directory named 'data' if it doesn't exist Sign up for Heroku and mLab Starting your Mongodb(Locally): Setting up a free account on Heroku and mLab : So, if you are not intrested in providing your credit card details you can go with mLab website. Alternatively you can also use mLab add-on in Heroku, It is free but it may require your credit card details. In this guide let’s see how to work with MongoDB locally and with mLab for deploying it to Heroku.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |