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

Storing data / API requests without backend

Hi all. I am building an app using HTML, CSS & JS and need to store data in the json format. I don't really have any backend experience using something like PHP to serve API requests.

At the moment I am simply testing data using local json files and calling them with ajax requests. I was thinking the app could integrate with Dropbox and have it store the data as a database file or maybe json files themselves. Is this a good solution? How would I go about doing this? Ideally I would not have a backend at all or have a simulated backend which will be javascript based only (if that makes sense) so that the data will sit in the database file on Dropbox and I will have some kind of service in the app which will take the data and serve the frontend using json.

Does that sound feasible?

Hey Jon,

I haven't personally used it, but I think what you're looking for is the Dropbox Datastore API. They have a nice step by step guide there.

Thanks Dante. Looks like what I need!

1 Answer

Another option might be something like Parse.

Not heard of this before. I'll check it out, might work better than my current method. Thanks for the suggestion.