Skip to content

eanplatter/parseQueue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

#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, first connect your view and controller:

  • Create your angular module and palce it in all of your JavaScript files. *remember: var app = angular.module('parseQ', [])*
  • Place the ng-app into your index
  • Create your MainController and place it in your index using ng-controller

Then, create a test:

  • In your MainController create a $scope.test object and give it a value
  • Call the $scope.test object in view to ensure it's pulling the value from the controller.

#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 with a model

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published