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

[ delete ]

[ delete ]

2 Answers

The simple answer is that you need a database! How to setup a mobile or web app to communicate with a database is more involved than makes sense for this response, but I will point you in the direction of a JavaScript oriented approach: https://teamtreehouse.com/library/build-a-rest-api-with-express.

This tutorial will teach you about running JavaScript on a server that can then be used to a pass data between client side apps and databases.

There is a bunch of foundational knowledge that I recommend having before taking on that course, though. The full-stack JavaScript track will help you build that foundation in a logic order.

Hi, Brent.

It depends. Are you building this vanilla, or are you using a framework? Lots of frameworks give you a few different options. For instance, if the framework provides a wrapper to access native components, then you can store it on the device itself. Additionally, SQLlite is a library you can use that will act as a database that lives within your application.

If you're building this without a framework, then your options would be adding a SQLite library, or using a database. Google offers a great database for hybrid apps called Firebase