Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Devontay Cross
12,736 PointsI can get the api to work on a different server
Every time I attempt to run the api.js on https://localhost:5000, I always get an error. I event attempted to run the api.js on the same server as the client folder and the api overwrote the entire website. By the way, I'm running the client folder on https://localhost:3000
1 Answer
Todd Shevlin
Full Stack JavaScript Techdegree Student 13,025 PointsMy understanding is if you are using a Mac port 5000 is used for another process. There is a work-around for it but I don't know exactly what it is ;-). You can send a note to Treehouse support and they will guide you.
jobbol
Full Stack JavaScript Techdegree Student 19,117 Pointsjobbol
Full Stack JavaScript Techdegree Student 19,117 PointsMy guess is port 5000 is already in-use. I can't be sure without seeing the error though and where it originated from.