Installing MongoDB and Angular and integrating them together

Install Homebrew

Install MongoDB Community Edition

brew install mongodb-community@5.0

Install Angular CLI

npm install -g npm
npm install -g @angular/cli

ng new my-first-project

cd my-first-project

ng serve

Angular + MongoDB Integration

npm install express — save
npm install mongoose — save
npm install body-parser --save
Server.js file established connection between mongodb backend and angular front-end
ng g s common -spec=false

node server.js

ng serve

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store