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

Consolidate Frontend and Backend Run Scripts into a Single Script #1079

Open
Shashan17J opened this issue Apr 24, 2024 · 3 comments · May be fixed by #1080
Open

Consolidate Frontend and Backend Run Scripts into a Single Script #1079

Shashan17J opened this issue Apr 24, 2024 · 3 comments · May be fixed by #1080

Comments

@Shashan17J
Copy link

Currently, the repository has separate run scripts for the frontend and backend (npm run dev: frontend and npm run dev: backend respectively), even though both scripts essentially do the same thing (npm run dev). This duplication in run scripts adds unnecessary complexity to the project setup and maintenance.

@Shashan17J
Copy link
Author

working

Shashan17J added a commit to Shashan17J/idurar-erp-crm that referenced this issue Apr 24, 2024
@Shashan17J Shashan17J linked a pull request Apr 24, 2024 that will close this issue
@Skanderloueti
Copy link

Another viable approach to address this issue is serving the SPA (Single Page Application) files directly from the backend after building them using npm run build. Here's a pull request that implements this alternative method: #1084 . This solution not only simplifies the setup but also streamlines maintenance efforts. It's worth considering for enhancing the project's efficiency and maintainability.

@Shashan17J
Copy link
Author

I checked your pull request, I think that it may lead to increased server load, especially for large applications, and can make it harder to scale the frontend and backend independently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants