Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💡 [FEATURE] - Build a single script in the home directory for development and production run #9

Open
devarshishimpi opened this issue Oct 4, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Hacktoberfest hacktoberfest2023 Hacktoberfest 2023 hacktoberfest-accepted Hacktoberfest Accepted help wanted Extra attention is needed

Comments

@devarshishimpi
Copy link
Owner

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 and npm run format:fix

Similarly, create 2 files in the home directory called as dev.js and prod.js
and then add the command in package.json to run them with npm run dev and npm run build respectively

Those 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 ), add BACKEND: <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

@devarshishimpi devarshishimpi added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers hacktoberfest Hacktoberfest hacktoberfest2023 Hacktoberfest 2023 hacktoberfest-accepted Hacktoberfest Accepted labels Oct 4, 2023
@devarshishimpi devarshishimpi self-assigned this Oct 4, 2023
@devarshishimpi
Copy link
Owner Author

Multiple folks can work on this issue. Let me know if you want to be assigned to this issue!

@deepsalunkhee
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest Hacktoberfest hacktoberfest2023 Hacktoberfest 2023 hacktoberfest-accepted Hacktoberfest Accepted help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants