How can I deploy separate backend and frontend projects on a single server?

How can I deploy a REST API backend and an AngularJS frontend, each in a different repository, onto one production server using technologies like hapijs, sequelize, and Azure?

hey spinglaxy, i managed using hapijs to split routes by setting distinct endpoints for angular static files and backend requests. checking cors and file mappings helped. maybe a small config error is messing things up. cheers!

The deployment strategy I implemented involved configuring hapijs to conditionally serve static files for the Angular frontend while routing API calls to the backend. In my experience on Azure, setting environment-specific variables was key in defining distinct endpoints. Integrating sequelize worked well as long as database migrations were properly managed through scripts. Testing the configuration in a staging environment before deploying to production helped identify and resolve routing conflicts efficiently. Proper error logging ensured that any unforeseen issues were quickly diagnosed and addressed.

hey spininggalaxy, i’ve been exploring hapijs as a reverse proxy for a smooth split of backend and frontend. has anyone else faced issues with static angular files on the same server? curious if there’s any secret sauce to this deplyoent method, any ideas?