Coder Social home page Coder Social logo

cfa's Introduction

chalenge

Requirements:

It should be any app

It connect to translink API

Bus location should be rendered into Maps

Bus location should be live and updating continuously

App should be functional

Should be well documented

Addressing the solution:

Lint code with StandardJS. Standard provides a standard JS style and helps to enforce it.

Unit Test code with Jest. Snapshot testing for components should be fine.

Enable modern JS with a pre-configured environment for our purposes. Create-React-App should work fine. Additionally, it includes Jest and React configuration, and bundling of production builds. As well , it provides several pathways for deployment.

I'll use fetch for network calls rather than superagent to reduce dependencies.

I'll use Redux to manage the app's state. Although we could persist the redux store with the service worker bundled in by Create-react-app,i will skip it for this app.

I'll use Redux-Saga to help implement live and continuous updates of bus locations

I'll use react-map-gl for mapping(and map box instead of google map since it’s better for interactivity.It have been used by Uber and have a cheaper option for API calls)

Test Cases: The user should see the map

The map should show bus locations

The bus location should be live and continuous updated

My Approach:

1.Setup Development environment create-React-App

Linter

Jest

Redux

Redux-saga

React-map-gl

2.Implement a map

3.Connect to the API

4.Transform responses into the format required

5.Render it onto the map

6.Implement continuous updating of bus locations.

cfa's People

Contributors

prosperityai avatar

Watchers

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