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

JavaScript AJAX Basics (retiring) AJAX and APIs Displaying the Photos

What was Dave referring too in the earlier videos, he was mentioning something about using Workspaces for a server?

I'm confused, I got everything up and running on both Workspaces and my own text editor. I was able to pull photos and test different animals. Was I supposed to start some kind of server, port 8080 on? Or with an API a server is not necessary?

1 Answer

Steven Parker
Steven Parker
231,236 Points

Whenever you use the "preview" function in the workspace, it operates as a server. Your browser connects to it in another window and makes requests of it and receives and displays the responses.

Local web-based editors usually replace both server and client functionality.