Skip to content
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.

User session? #1

Open
aquibbaig opened this issue Jan 5, 2020 · 2 comments
Open

User session? #1

aquibbaig opened this issue Jan 5, 2020 · 2 comments

Comments

@aquibbaig
Copy link
Member

aquibbaig commented Jan 5, 2020

PostgreSQL, What do you think?

Defence:

  1. Relational db (needed)
  2. Data validation (needed)
  3. Fast transactions (why not)
@aquibbaig
Copy link
Member Author

Postgres it is.

@aquibbaig
Copy link
Member Author

Things to do,

  • Send request from the frontend for user registeration (User creation in the db)
  • Add a record to the Users [B]
  • Synchronise logins/sign-ins
  • Fetch user from the db [B]
  • Get back user and update the state
  • Pass context down to children if user exists
  • Fetch user from localstorage when a componentDidMount

[B} -> Backend

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant