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 Node.js Basics 2017 Building a Command Line Application Planning Our Project

Edward Pledger
Edward Pledger
2,757 Points

Node.js Basics Command Line Application Theory Question

I'm was building the command line application when a question came to me. I enjoy learning how to retrieve information through the JSON version of a web page, but in the real world would a programmer retrieve this information as they do in the video or pull it from the database?

I realize too if you're a third party trying to get this information you almost certainly don't have access to the database, but just curious.

Thanks!

1 Answer

Steven Parker
Steven Parker
231,275 Points

If you're building a complete application using a database, you would likely use other methods to fetch the data on your own system. But the method used to access an API on another party's system would be the same as the one demonstrated here.