chrisleee / twitch-stocks

A web platform that allows you to invest in Twitch streamers with imaginary points.
GNU General Public License v3.0
21 stars 8 forks source link

Login/Register: Create login and registration forms #56

Open chrisleee opened 7 years ago

chrisleee commented 7 years ago

These should both be new components.

  1. Checkout a new branch from frontend-structure branch or master once that branch is merged.

  2. Look at the user schema to see what data we store. (Username, email etc.)

  3. Either manually write the methods to track state locally or use https://www.npmjs.com/package/react-form.

    • Have reasonable requirements on each field (i.e, username/password is required)
  4. Form submission should just send the user to the /dashboard page for now.

  5. Create unit tests.

  6. Import and place these in the /login and /register pages.

It's possible that we end up switching to redux forms. I'm not sure of the use cases yet, but for now this should be fine. We're using styled-components for styling.

Good references for design: https://www.coinbase.com/signin https://www.coinbase.com/signup

jallier commented 7 years ago

Very basic implementation done in login-register-branch The actual login code can be worked on when the api-auth branch is merged