Run Your Frontend & Backend on One Command

Опубликовано: 25 Октябрь 2024
на канале: Brett Westwood - Software Engineer
2,427
59

Concurrently is a NPM package that is super popular and actually quite effective.

Instead, of opening up two terminals to run your frontend and backend. You can use concurrently as a dev dependency to run both the frontend and backend on one terminal/command.

You will create a script command that allows for you to run a command concurrently.

so, instead of doing npm run client for the frontend and npm run server for the backend. You can create a script command: "dev": "concurrently \"npm run server\" \"npm run client\""

So, this means you can run npm run dev to run both the frontend and backend.

Here is the npm package right here 👇
https://www.npmjs.com/package/concurr...