[SOLVED] CEN3031 Introduction to Front-end development with Angular.js

$25

File Name: CEN3031_Introduction_to_Front-end_development_with_Angular.js.zip
File Size: 574.62 KB

SKU: [Solved] CEN3031 Introduction to Front-end development with Angular.js Category: Tag:
5/5 - (1 vote)

We will continue to build upon our directory application by creating a front-end interface with AngularJS to display listings, as well as the ability to add new listings and delete old ones.

HTML/CSS

HTML (HyperText Markup Language) is a markup language most commonly used to create web pages. CSS (Cascading Style Sheets) is used to describe the presentation of our HTML pages. HTML and CSS are used along with Javascript to create web applications both simple and complex alike.

Please go through this tutorial to learn the fundamentals of these two web technologies before continuing to the Bootstrap section. Keep in mind that this tutorial is very detailed and may take some time. Make sure to pay specific attention to:

  • The semantic nature of HTML
  • Layering CSS styles in a modular fashion using multiple classes
  • The box model
  • Positioning content with CSS

Bootstrap

While we could create our web application with just HTML, CSS, and Javascript, writing all of our styles from scratch could be time consuming.

Say we have an application that will be used by desktop, tablet, and mobile users alike. Our CSS would have to be responsive, changing the layout of the page depending on the users device. Luckily, we have Bootstrap, a responsive HTML/CSS/JS framework made by Twitter, to style our web applications. Bootstrap provides a grid system for easy layout and many components that will give the application a clean, modern, and consistent look.

Bootstraps documentation is extensive, so dont worry about memorizing everything Bootstrap has to offer. If you understand the fundamentals of HTML and CSS, you should feel comfortable with the mechanics of the grid system and using classes to add styles to your HTML components. Itll be a better use of time to just refer back to the documentation whenever you need to add a new component to your webpage.

Model-View-Controller (MVC) Architecture

A common design pattern used for developing user interfaces is the model-view-controller architecture. As the name suggests, in this architecture the application is broken up into three main components:

  • The model is where the applications main data objects are stored.
  • The view presents models to the user, and allows the user to interact with the models
  • The controller interfaces between the model and the view
    • it updates models according to input provided by the user in the view
    • it updates the view when a model changes

The MVC concept has many variations and often does not exactly follow the pattern described above. You can take a look at this page for more information, or simply go a Google search for MVC architecture.

Angular.js

Angular.js is a MVC-based framework (maintained by Google) for developing web applications. Angular makes it (relatively) easy to start building an application by extending HTML so that the markup can describe not only the static webpage but also dynamic behavior.

Angular would be difficult to succintly describe in this readme. The framework certainly has a learning curve, and you should take some time going through tutorials to understand the basics. Below is a list of resources that may be helpful.

You do not need to go through all of these, just start to get familiar enough with Angular-specific concepts to complete this assignment, particularly the following:

Assignment

As before, We have provided skeleton code that will help guide you in completing this assignment.

Orientation to the files provided for this assignment:
  • In basic static HTML websites, index.html is the homepage or landing page when you visit a website. In node web applications, both index.html and app.js are used.
  • index.html has a basic template for the page and references the CSS frameworks used to control the style of the content on the landing page. Thus, the index.html is the view that the user sees.
  • app.js registers the dependencies (i.e., modules needed to run the app).
  • style.css is the style formatting used to design the look and feel of the index.html page
  • listingController.js is a file that holds the code that AngularJS uses to control what is rendered on the browser in response to a users interaction with the website
  • listingFactory.js is that same content that we had in our listings.json file for Assignment #1 but formatted into an object that AngularJS can manipulate

Assignment Objectives

Your objective is to create the front-end of our UF Directory App that will display the listings and allow the user to add and delete old ones. To accomplish this you will:

  • modify the listingController.js file to display listings, as well as the ability to add new listings and delete old ones.

Tasks

Take a look at the source code provided to you, and map out how the different files communicate with one another. You will notice there is a factory, a controller, and a view (provided by the index.html page). It is your responsibility to:

  1. Complete the methods in the controller
  2. Implement the prompts in the HTML view to make the application functional

Instructions:

  1. Clone this repository and then navigate to it on your local machines terminal
  2. Implement the tasks listed above
  3. Check your that it works by looking at the index.html file in your favorite browser

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CEN3031 Introduction to Front-end development with Angular.js
$25