![how to start mongodb server on bach how to start mongodb server on bach](https://i.ytimg.com/vi/wLNL2HTvcVw/maxresdefault.jpg)
![how to start mongodb server on bach how to start mongodb server on bach](https://assets.hongkiat.com/uploads/webdev-with-mongodb-part1/mongodb-architecture.jpg)
#How to start mongodb server on bach how to#
Let's see step by step how to start a Basic Server! You can use the default options, or change them as you wish - however, your entry point should be server.js , which you will create shortly.Ĭreate a server.js file inside your back-end folder - this will contain your first Node server. This article will tell you how to install it on macOS correctly. If, unlike me, you create the Git repo first, you can add the URL to the remote repo to your Node project during creation.įrom within your backend directory, run the terminal command npm init to initialize the project. MongoDB is most popular today, it is a NoSQL database. gitignore file containing the line node_modules to avoid pushing this large folder to your remote repo. Let's see in the next video how to initialize your project! īefore you start, you can initialize a Git repo by running git init from within your back-end folder. For example, it also adds functionalities that normal browser JavaScript doesn't have, like access to the local file system.Įxpress is a framework that sits on top of Node and makes Node servers much easier to build and maintain, as you will see as you advance through this course. To start MongoDB, run mongod.exe from the Command Prompt navigate to your MongoDB Bin folder and run mongod command, it will start MongoDB main process and The waiting for connections message in. Node is the runtime that allows you to write all your server-side tasks in JavaScript, like business logic, data persistence, and security.
![how to start mongodb server on bach how to start mongodb server on bach](https://files.readme.io/aee6175-Screen_Shot_2021-10-15_at_5.01.27_PM.1baf79136d34499b8d3d45460bc47562.png)
Before jumping in and writing code, let's take a moment to go over Node and Express.