MERN Stack - Useful Commands
Part of MERN Stack
NodeJs
| Command | Description | Notes |
|---|---|---|
| npm init | Initializes a new node.js project | |
| npm install <package> –save | Installs and adds the package to the dependency files in packagejson |
ReactJS
| Command | Description | Notes |
|---|---|---|
| npx create-react-app <app-name> | Creates a new app | |
| npm start | Starts the react server | |
| npm run build | Bundles the app into static files for production | |