astroash / dickhub

🍆 🥒 🥕 🌶
9 stars 0 forks source link

Paths using react router #7

Closed ameliejyc closed 6 years ago

ameliejyc commented 6 years ago

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:

astroash commented 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:

astroash commented 6 years ago

Also back to your question on routing, we will also need routes for the individual issues. We could have:

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

astroash commented 6 years ago

After consulting with ZoZo the 🧠 lets:

ameliejyc commented 6 years ago

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?

astroash commented 6 years ago

I keep getting distracted with my horror side project. Would you be up for paired programming this? Might be more fun / better learning experience.

ameliejyc commented 6 years ago

We will also need to have a signup endpoint for first time logins.

astroash commented 6 years ago

Static router docs for login page: https://reacttraining.com/react-router/web/example/static-router

ameliejyc commented 6 years ago

Update on routes: