reset password

Setting Up MEAN Development Environment for CS5220

This guide is for setting up a MEAN (MongoDB, Express, Angular, Node.js) development environment for CS5220 on Windows. 

MongoDB

Download and install the latest MongoDB Community Server from MongoDB. Unlike some other DBMS, MongoDB does not automatically create and start a Windows service during installation. To start a MongoDB server, please read and follow the instructions in the tutorial for your platform (e.g. Windows, MacOS, Ubuntu).

Node.js and NPM Packages

Download and install Node.js 10.x from nodejs.org. We will also need the following global packages:

  • eslint and tslint for problem detection in JavaScript and TypeScript code, respectively.
  • express-generator for creating web applications using the Express framework.
  • @angular/cli for creating and building Angular projects.
  • ts-node for running TypeScript code.
  • nodemon for running and monitoring Node.js applications.

To install a package globally (meaning the package will be available to all projects instead of being used by only one project), open a command prompt and run the following command:

npm install -g <package_name>

For example, to install eslint, simply run "npm install -g eslint".

Text Editors for Developers

Sublime Text, Visual Studio Code, and Atom are all great code editors and popular among MEAN stack developers. Just pick one that you like the most.

 

This page has been viewed 7626 times.