ou're going to need to know how to get a webserver running with Express, and how to use app.get and app.post to communicate with both the server and the database. It's all covered in that original tutorial, and if you're a developer who's familiar with JavaScript, it's not hard.
Back? … or rolling your eyes and going, “dude, I already know that stuff”? Either way, great! Let's add some new tools to our toolbox, and create a simple little app that works without a single page refresh.
Here are the goals:
* Learn what REST means in plain English
* Store and retrieve JSON data in a MongoDB collection using HTTP POST and HTTP GET
* Remove data from the collection using HTTP DELETE
* Use AJAX for all data operations
* Update the DOM with jQuery
PART 1 - SERIOUSLY, WHAT THE HELL IS REST?
PART 2 - SETUP
PART 3 - STARTING IN ON HTML
PART 4 - THE DATABASE
PART 5 - LISTING USERS
PART 6 - POPULATING USER INFO
PART 7 - ADDING USERS
PART 8 - DELETING USERS
CONCLUSION
Your new post is loading...