Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Wrapping It All Up1:12 with Alena Holligan
We covered three different ways to persist data in a browser. Forms, which included just using the query string, Sessions and Cookies. You can also combine these methods with a database or other file system for server based persistence.
- Implement Code Challenges
- Check session for all 5 words, redirect to missing word
- Don't allow blank words
- If not starting over, show the last word they entered
- Set up a prompt to ask the user if they really want to delete the story.
- Write additional stories that use the same 5 words we utilized for the original story.
- Create a bank of different stories and save the entire story instead of just the user entered words.
- Use the language tool api to make sure the word conforms to the part of speech requested http://wiki.languagetool.org/public-http-api
Great job being persistent and finishing this course.
We covered three different ways to persist data in a browser.
Forms, which include just using the query string, sessions and cookies.
You can also combine these methods with a database, or other file system, for
server based persistence.
Although I have shown you some of the limitations for
each of these methods, we haven't talked about security.
For this story project,
I'm not really worried about protecting the data that's being used.
But if you want to work with sensitive data, such as user name and password,
you'll need to consider the security of the persistence methods you choose.
But have no fear, we have a user authentication course when you're ready.
I have also included additional resources in the notes associated with this video.
Before you continue to the next course,
take some time to play around with what you learned about data persistence.
You can write a completely different application or
expand upon the game we created in this course.
If you'd like some suggestions, check out the notes associated with this video.
Continue to be persistent yourself, to have fun and keep learning.
You need to sign up for Treehouse in order to download course files.Sign up