0

I have an application developed from Angular Seed and a server from the Hackathon Starter. The applications run separately, the client on port 8000 and the server in 3000. How can I stack the client and the server in a single application?

1
  • This is two different skeletons of web applications based. I am not understand what you want to do. Commented Aug 21, 2016 at 17:53

2 Answers 2

1

I think it is good to keep both projects separate. it makes the code more maintainable and when you deploy on the server then you minimize the load.

when you go on production you can run both projects on same server and expose for public on separate domain like api.example.com and example.com using ngnix and node.js.

if you still want to merge both projects then you can put angular code in public folder of node.js use it from there.

Sign up to request clarification or add additional context in comments.

1 Comment

So I have to have a repository for the backend and another for the frontend, right?. Or how can i deploy with just one repository?
0

It sounds like you are wanting to know how to be able to run webpack-dev-server through your existing express app? This can be done by using webpack-dev-middleware. This allows you to integrate dev server with your existing express server.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.