Coder Social home page Coder Social logo

coverages-frontend's Introduction

README

Coverages Project

Description

This application encapsulates the frontend for the coverages project. The application is built with React and follows a FLUX architecture, specifically utilizing the REDUX framework. Security with the current backend is hanled with JSON web token authentication.

Deployment

The application is currently deployed on Heroku at the following link: https://dashboard.heroku.com/apps/coverages-frontend. There are no add-ons required. To specify which backend is to be used to support the application, navigate to utils/APIUtils.js and replace the base variable with the desired resource. Currently, a supportive backend is running at https://coverages-backend.herokuapp.com.

Actions

All actions are located in the actions file. Most actions that involve interacting the with API are created with higher-order functions that take the name of the model and return an asynchronous function that sends a request to the API. There are also functions to handle updating and posting coverages. These functions handle deleting and posting the associations of carriers and brokers to the coverage.

Reducers

All reducers are in the reducers folder. Reducers for each model are created with the use of higher-order functions that take the name of the model and return a reducer that fits the needs of our application. There are several types of higher-order functions used in making the reducers to fit the needs of some specific models. The coverages need a reducer that can handle keeping track of page changes and companies, and categories need to be able to keep track of changes to their associated brokers and subcategories respectively. This is because brokers and subcategories are posted directly from the companies and categories pages so we must be able to update the view with these changes without making an API call to reload the data.

Containers

Containers are responsible with mapping the data from our store to our views. Containers will typically dispatch actions to fetch our initial data when the component mounts and render components that then take the data as props and display it accordingly. General components used by many containers can be found in the components folder while components specific to a container can be found in the folder responsible for the views of the respective model. Routing as well as rendering of the navigation and alerts can be found in the root file.

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.