HolismHolding / Issues

1 stars 0 forks source link

user authentication #95

Open 20Amir01 opened 8 months ago

20Amir01 commented 8 months ago

How should the folder structure and files inside the App folder be in order to manage user authentication ? Is the concept of route groups needed ? Should I develop a middleware file ? What are the work steps in general ? For smaple my project has /dashboard and /cart pages . These pages must be accessible as long as the user is logged in If the user is not logged in, it should be transferred to the /login page . Should i create folders like DashboardParts , LoginParts , CartParts and a Layout.jsx file inside it in order to handle the UI styles?

Nefcanto commented 7 months ago

@20Amir01, those are advanced concepts.

We tend to be as declarative as possible. For example, you can see the /HolismSite/Orders/App/cart/index.jsx.

But this section is not complete yet. It's prone to changes, both architecturally and syntactically.

20Amir01 commented 7 months ago

So , what should i do now with this pages in my projcet ? : /dashboard /login /cart Should I leave them for now and make them static ?

Nefcanto commented 7 months ago

Please continue work on other parts, until you've finished the project. After that we can come back to these items.

20Amir01 commented 7 months ago

Ok , thanks :)