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

Unified servers under one source control #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Unified servers under one source control #1

wants to merge 4 commits into from

Conversation

codeedog
Copy link

Arseniy,

Great tutorial you put together. I really appreciated going through it. I'm still learning Angular, Express and Bootstrap and reviewing your post helped.

Since I'm new to this world, I'm not sure about best practices, etc. One thing that confuses me is maintaining two separate code bases for client and server in Development when in the end they are served out of the same application in Production. To that end, I fell upon a method to maintain and run two servers out of one code base. I thought I'd fork and update your code to allow that. I put together a repository that explains how to do this, mostly so that I can remember when I need it again.

In addition, a feature in webpack allows proxying of requests from the Angular development server to the separately running express server, which obviates the need for CORS. I added that capability, as well. You can see the change in proxy.conf.json and angular.json.

Please feel free to merge these changes, if you find them of value.

Cheers,

Andy

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 this pull request may close these issues.

1 participant