GithubHelp home page GithubHelp logo

side-interview's Introduction

Table of Contents

  1. Setup
  2. Overall thoughts
  3. Better Practices
    1. Firebase Authentication
    2. Environment Configuration
  4. Enhancements
    1. Pagination
    2. Styles
    3. Data Architecture

Setup

To setup the project, just clone the repository and run:

yarn
yarn start


Overall thoughts

In general, I tried to limit the scope of the project to the features described in the assignment. I tried to eschew practices that would complicate the code for very little gain. In the remaining sections, I will go through some of these decisions as well as areas that could be improved were this to begin to take shape as a real software product. I had a lot of fun doing this. It felt much more engaging than the simple timed coding tests I've often done. I look forward to hearing back from you!



Better Practices

There were a few common best practices that I intentionally did not implement. In both cases, I thought it would largely serve to make the code harder to follow or get running without adding much in exchange:

Firebase Authentication

The Firebase DB I set up currently is not authenticated. Obviously, in a real world scenario this would not be a good idea. However, in the interest of making the project simple to setup and run, I chose to leave the DB unsecured. This would be near the top of the priority list were this to be transformed into a real web application.

Environment Configuration

Several of the parameters in the code are ones that would be better suited to an environmental configuration. For example, the authentication used for SimplyRETS, or the Firebase configuration. However, given the nature of the project I thought implementing this would serve to add complexity without any benefit.



Enhancements

There were some possible improvements that I thought could be made to the project, but decided against in order to avoid scope creeping the assignment. Here are a few of the features I considered:

Pagination

Both on the UI and the SimplyRETS API side. Currently the API is hard coded to retrieve 500 properties and dumps them all onto the page. To improve this, adding a pagination component to the UI and the API calls to match would help to improve the UX.

Styles

Currently much of the styling is in fixed CSS. If there was a reasonable expectation that branding was either likely to change or would need to change on a client by client basis, adding some dynamic styling either through CSS Modules or a more in-depth theming implementation would be very helpful toward that goal.

Data Architecture

Right now, the API call and Firebase connection happens in the componentDidMount of App.js. Given the limited scope of the project, using something like Redux seemed heavy-handed for this particular use case. However, if the data management became more complex, it would almost certainly warrant adding a Redux store (or whatever seemed most appropriate for the project).

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.