Code Monkey home page Code Monkey logo

contactssinglepageapp's Introduction

Single Page App Lab - Contacts

The goal of this lab will be to make a single page contacts app that is connected to a rails backend. The repo has a working front end contacts app that does not use a database. Here is what you need to get it work with rails:

  1. Look over the code in app/assets/javascript/contacts.js and understand what it is doing.
  2. Add a model to the rails app. It should be able to store and retreive all of the contact data that is being used in the javascript of the contacts app.
  3. Create an api for getting all of the contacts.
  4. TEST THE API WITH RSPEC. Make sure you do this before moving on.
  5. Use ajax in the javascript code to call the api you created and use the data that is returned in your contact app.

Bonus

If you get done with the contacts app early, add the ability to filter out the contacts in the list. There should be a list of letters A-Z. When the user clicks a letter, A for example, all contacts that start with A are shown, but no other contacts. The user should be able to clear the filtering as well.

Hint

  • Make sure you are requesting the correct data by adding .json to your url.
  • Look at the jQuery docs to understand what is going on.

References

contactssinglepageapp's People

Contributors

tigarcia avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.