Closed aaronhumerickhouse closed 9 years ago
You can't have two applications listening to the same port. So what you’ll need to do is make all calls made by the app to point to ‘localhost:8001’.
Right now while ‘@root’ is ‘localhost:3082’,without a proxy or anything, there is no way for the MSL server to receive the call. After you make that change, the requestPath should just be '/api/tournaments...'.
Another solution would be to 'run' the app on MSL. Have the MSL server serve up all needed responses through local file system, registered responses, or responses generated using the extension file. So start MSL on port 8001 still and just have root as 'http://localhost:8001/index.html'.
Let me know if that helps.
The app in this case refers to your front-end code only. The idea is that you build your front-end code and deploy it locally on the local file system (for example using grunt). Then have MSL server host those front-end code so that you can open up the html via http://localhost:8001/yourhtml.html. This way, when the front-end code makes a server-side call such as "/myapp/myservice" (which is http://localhost:8001/myapp/myservice), MSL server can respond with a mock response.
Thank you.
I don't know if I'm using this correctly, but how am I supposed to run MSL on a port that's already used?
What I've been trying is: Starting msl-server
node_modules/msl-server/bin/msl --port=8001 --debug=true
Starting my app on 3082 Running a Test