Giter Site home page Giter Site logo

stephaniezou1 / be-engaged-frontend Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 1.81 MB

An election app that tracks elections across the country, finds the closest polling stations in your city, and sends you SMS notifications for voting deadlines ๐Ÿ‘€

HTML 3.71% CSS 5.15% JavaScript 91.13%

be-engaged-frontend's People

Contributors

dependabot[bot] avatar stephaniezou1 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

be-engaged-frontend's Issues

progress check

What I have done so far:
(1) created the follows reducer
(2) created the follows action to map the follows into global state
(3) created the backend for follows

Questions:
(1) Am I setting up my follows (joiner) reducer correctly (i.e. I think my keys are wrong, I need to include the election id and user id and election information)
(2) Am I creating my follows instance correctly?

what we did:

  • created follows as an attribute to user reducer in an array
  • follows serializer to make sure the elction id is being sent out
  • map state to props to find the elction with election id
  • second argument of mapstatetoprops is ownProps, used ownProps to find specific election from global state to be sent down as props
  • use the election object and render it onto following container
  • sent post request to backend with token in header and election id in body
  • body of fetch goes to params in backend

to-do:

  • add follow object to user's follow array
  • use id of follow to delete a follow

To - do

What I have done so far:
(1) created the follows reducer
(2) created the follows action to map the follows into global state
(3) created the backend for follows

Questions:
(1) Am I setting up my follows (joiner) reducer correctly (i.e. I think my keys are wrong, I need to include the election id and user id and election information)
(2) Am I creating my follows instance correctly?

what we did:

created follows as an attribute to user reducer in an array
follows serializer to make sure the elction id is being sent out
map state to props to find the elction with election id
second argument of mapstatetoprops is ownProps, used ownProps to find specific election from global state to be sent down as props
use the election object and render it onto following container
sent post request to backend with token in header and election id in body
body of fetch goes to params in backend
to-do:

add follow object to user's follow array
use id of follow to delete a follow

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.