#Introduction
Today we are going to be building a queue app similar to the one we use during class. Instead of a Firebase backend though, we will be using Parse.
Parse is good because it encourages us to create a RESTful API. We will learn how to make the 4 HTTP requests with AgularJS:
- GET - retrieve data
- POST - create data
- PUT - edit data
- DELETE - delete data
#Step 1 - Set Up Application
The first thing we need to do is create and link all of our files. ** The AngularJS CDN is already loaded into the app, no need to look for outside code. **
- Create MainController.js in the *controllers* folder and link it in the index
- Create parseService.js in the *services* folder and link it in the index
- Link the main.css file in the index
- Link the app.js file in the index
We next want to ensure angular is working correctly.
#Step 2 - Creating Questions
We will begin by making it possible to create questions, primarily because this is the most important feature of our queue.
Let's start with just the view and controller. We want to ensure our users can make questions before we worry about writing them to the database.
- Create an input field in the index