Closed ameliejyc closed 6 years ago
It might be worth talking to Zooey about the best way to root an authenticated SPA, as I know power to change were having issues with this.
If we have an SPA, then users will be able to move around all the pages without checking with our client (or authenticating their cookie). I reckon (disclaimer: the following words are unresearched) we could either:
Also back to your question on routing, we will also need routes for the individual issues. We could have:
/
- login page that reroutes to /issues
if you have a cookie (which is potentially static)/issues
for issues board (which is potentially an spa)/issues/new
for adding a new issue (which is part of spa)/issues/102e2a3dea
10 digit hexadecimal number for individual issue numbers (which is part of spa)NB: This will probs keep us going until mid 2019 as it'll take 1099511627776 issues before we max out and need a new counting system
After consulting with ZoZo the 🧠 lets:
Perfect! Also I think we'll hit 1099511627776 issues in no time.
I think you said you were keen to do this part of the app - is this something you want to start on next?
I keep getting distracted with my horror side project. Would you be up for paired programming this? Might be more fun / better learning experience.
We will also need to have a signup endpoint for first time logins.
Static router docs for login page: https://reacttraining.com/react-router/web/example/static-router
Update on routes:
It looks like we have three paths:
If someone lands on the home page and is already authenticated it should redirect to the issues page.
@astroash lemme know your thoughts :cool: