With the Iron Router configuration taken care of, it’s time to set up our POST, PUT, and DELETE endpoints, communicating with REST clients via JSON objects.
- [Narrator] Today we will be going over the third video…in section three, creating clean web and REST services.…Creating REST end points.…We will be creating the POST, PUT, and DELETE end points…for our service so that we are able to query the content,…we're able to update the content and of course…we're able to delete the content as needed.…We will use the function chaining inside of Iron Router…to accomplish this so let's go ahead and get started.…We're gonna pick up right where we left off…before going into the end of our get function…and we're going to chain a function here for post.…
It's very similar to what we did up above.…We obviously need to write the headers, there's a reason…why we separated that out so that we can do that…and now we need to check to see if an email address…was sent in with a request.…So we're gonna do a very simple…this.request.body.email…if it doesn't exists, we don't even want to go anywhere…so we'll send a quick response back saying,…hey no user was specified, and then we'll return.…
Meteor is an incredibly powerful, impossibly fun platform for building responsive web and mobile applications. Meteor uses modular components, full-stack reactivity, and data on the wire, leading the charge toward truly effective application development.
Learning Meteor Application Development will get you up and running on the Meteor platform and on your way to creating web and mobile applications in hours instead of weeks. By taking advantage of all of Meteor's capabilities, you can take your development skills to the next level and build those "killer apps" you've been dreaming about.
Author Isaac Strack begins by installing Meteor, configuring the development environment, and building a baseline application. Then he shows how to create a full-stack application and build a simple, elegant, and data-reactive interface. He connects that UI to back-end services by creating a MongoDB data collection, Meteor DDP services, and a RESTful API. Finally, you'll learn how to test the application and deploy it to Meteor's servers or to a customized production environment, to show it off to the world.
- Setting up Meteor
- Creating your first app with Meteor
- Displaying collections
- Adding content through user input
- Securing your app
- Creating web and REST services
- Creating a responsive UI
- Deploying a Meteor app