-1

My project is split into 2 folders client and server

How can I run the script through npm start to run both the backend and the frontend at the same time

Screenshot given below: Two Folders in my project

Client Folder Files

Server Folder Files

Please help me how to run the complete project

  • 1
    How do you run your frontend? Usually a frontend consists of static files. Sometimes a frontend has its own webserver. Sometimes the backend generates the frontend. – jabaa Feb 11 '22 at 18:16
  • I don't know how to run it. It doesn't work by npm start – Hadi Ami Feb 11 '22 at 18:18
  • 1
    Again: Usually you don't run a frontend. It consists of static files. Your question is unclear and lacking important details. You should ask the person who gave you this project. – jabaa Feb 11 '22 at 18:18
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Feb 22 '22 at 02:27

1 Answers1

-1

You should try to run it on different ports. For example, run the client on port 3000 and the server on port 3001.

you can look here.

Halit Uzan
  • 34
  • 3