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
Greg Schudel
4,090 PointsA Backend for my Front End - DOM Scripting by Example
I just finished the "DOM Scripting by Example" and I am looking for a simple solution that will allow me to create a backend for storage so I can take my vanilla JS web app and start storing data so I don't loose it whenever I hit refresh.
One person I know suggested PHP and SQL. I don't see any classes that refer to using both those in your library.
Another person suggested Mango DB. Which backend that is similiar to JS and easy to apprehend that is web based would you suggest I use for the backend that you have courses on?
2 Answers
Tim Strand
22,458 PointsTry googles Firebase if you have no backend experience and dont want to have to learn one. I have only dabbled with it but basically Firebase takes care of all the backend you just provide the front end
Brian Jensen
Treehouse StaffYou also have the option of using the browsers localStorage object to keep it front end and JavaScript based. If you just need to store settings and options on your site and not things like images and videos, as it has a 5MB limit.
Treehouse has a workshop for learning it here
Greg Schudel
4,090 PointsYou also have the option of using the browsers localStorage object to keep it front end and JavaScript based. If you just need to store settings and options on your site and not things like images and videos, as it has a 5MB limit.
But does that mean that when you hit refresh within the browser you don't loose the data you just inputed?
Brian Jensen
Treehouse StaffGreg Schudel Correct! The localStorage persists through refreshing and closing the browser.