Open devarshishimpi opened 12 months ago
Multiple folks can work on this issue. Let me know if you want to be assigned to this issue!
Subject: Intrested in contributing to Issue #[9]
Hello devarshishimpi ,
I am intrested in working on this issue and I think its greate idea to create a script which could start client and server at the same time, I could use it in my further projects too!
Start Date
No response
Implementation PR
No response
Reference Issues
No response
Summary
There is package.json file with prettier in the home directory which runs on
npm run format
andnpm run format:fix
Similarly, create 2 files in the home directory called as
dev.js
andprod.js
and then add the command in package.json to run them withnpm run dev
andnpm run build
respectivelyThose files respectively should build all the installation steps with node child process to run it and also log in the terminal of all the output. Also, add relevant error handling.
Make use of only one terminal window. For eg: For the dev environment, once you add
npm run dev
it should run those commands, and where you need to run both the backend and frontend.For every backend command, add
BACKEND: <the command>
and use chalk package to color the BACKEND word. for the output of the backend ( logs ), addBACKEND: <the terminal output>
and similarly use chalk package with different color.Similarly for the frontend as well, with 2 more chalk colors.
Basic Example
-
Drawbacks
-
Unresolved questions
No response