Add code to run npm start in both client & server

- Created a `run.js` script to automate the execution of `npm start` in both `client` and `server` directories.
- Added a check for `node_modules` to run `npm install` if missing before starting the applications.
- Updated root `package.json` with `install-all` and `start-all` scripts for easy installation and starting of both client and server simultaneously.
This commit is contained in:
Harikrishnan Gopal
2025-04-15 21:02:58 +05:30
parent 59c12d6668
commit 5d40065667
5 changed files with 359 additions and 1 deletions

17
package.json Normal file
View File

@@ -0,0 +1,17 @@
{
"name": "appointment_to_examiner",
"version": "1.0.0",
"main": "run.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"install-all": "npm install --prefix client && npm install --prefix server",
"start-all": "node run.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"description": "",
"dependencies": {
"concurrently": "^9.1.2"
}
}