Table of Contents

MERN Stack - Useful Commands

Part of MERN Stack

NodeJs

CommandDescriptionNotes
npm initInitializes a new node.js project
npm install <package> –saveInstalls and adds the package to the dependency files in packagejson

ReactJS

CommandDescriptionNotes
npx create-react-app <app-name>Creates a new app
npm startStarts the react server
npm run buildBundles the app into static files for production