I had a nodejs server and I used web pages to test the API locally. But I’ve now separated the nodejs project and the web pages because it was too cumbersome. Typescript was having trouble running in the root (for the server) and also running in a sub directory (public for the client JS / pages). So I’ve broken up the project into two projects.
How do I test this now? I can start the nodejs server but then I need to run the web pages locally as well. Do I run another nodejs server for the pages on another port? And then I refer to the localhost in api calls? This approach also seems cumbersome.
How do I setup and test a nodejs project and web pages that test that nodejs project when they are are two separate projects?