MERN Task Manager
npm scripts
At root:
npm run dev
: Starts both backend and frontendnpm run dev-server
: Starts only backendnpm run dev-client
: Starts only frontendnpm run install-all
: Installs all dependencies and dev-dependencies required at root, at frontend and at backend.
Inside frontend folder:
npm start
: Starts frontend in development modenpm run build
: Builds the frontend for production to the build foldernpm test
: Launches the test runner in the interactive watch modenpm run eject
: This will remove the single build dependency from the frontend.
Inside backend folder:
npm run dev
: Starts backend using nodemon.npm start
: Starts backend without nodemon.