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

nishantr
nishantr
6,326 Points

is database connection is necessary to build a REST API in express?

i am developing a weather app using express nodejs which fetches the data from openweathermap.org and displays the data in my application. is that necessary to connect my app to any database?

Patrick Mockridge
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Patrick Mockridge
Full Stack JavaScript Techdegree Graduate 45,611 Points

Hi Nishantr, no if you aren't storing any data yourself you don't need your own database. It's only when you start needing to authenticate users with their own preferences et cetera but just making simple API requests to a client no you can just use Express on its own.