Giter Club home page Giter Club logo

reside-code-challenge's Introduction

Reside Code Challenge

Assumptions and Info

There are a couple things we are assuming for this demo.

  1. Security & Authorization with API. One would not store credentials client side for API access. Instead lets assume we are authenticating with firebase where we would "sign in" and receive a auth token that would be used on all api calls.
  2. Data Consistency. We are assuming that all listings have all the data, we don't have any checks to make sure data is there. Such as images.
  3. User Data, i.e. userId right now is just passed as props. A better way to do this would be using Redux and storing it that way for it to be used app wide by all Components.
  4. Database Security, right now for the sake of quick and easy firebase firestore is set to just accept any database access from localhost. So anyone can just read or write. One should have it set to read and write on auth and just use the anonymous sign in for firebase. That way the user is "signed in" with the app.

Challenge Outline

Create a list view of data returned from API

Using any technology you like (we’ve had success with React and Firebase, but, choose whatever you’re comfortable with), create a list view of data returned from the SimplyRETS API. SimplyRETS is an API commonly used in real estate. You'll need to make a SimplyRETS.com trial account. The app should meet the following criteria:

  1. Get data from this SimplyRETs endpoint on page load: https://api.simplyrets.com/openhouses (you'll need a SimplyRETs trial account)
  2. Output the data from the array into a list view of properties. Each property should at least display the following information:
  • Stories
  • Bedrooms
  • Baths full
  • Baths half
  • mlsId
  • listDate in MM/DD/YYYY format
  • A photo
  • The list price
  1. On app load, the app should generate a random number that becomes the user's ID. This ID is stored in browser local storage, unless that ID is already there.

The user can click a button to save the mlsId to a location in firebase associated with their username (no UI is needed to view this, however - just save the data to the DB.


Running App

Just run the following commands:

  1. npm install
  2. npm start

reside-code-challenge's People

Contributors

chriscasper avatar

Watchers

 avatar 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.