# dikxak/paradise-camp-frontend-v2 architecture

> Architecture diagram of the GitHub repository dikxak/paradise-camp-frontend-v2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dikxak/paradise-camp-frontend-v2
- Repository: https://github.com/dikxak/paradise-camp-frontend-v2

## Overview

This is a React/TypeScript web client with authentication and routed blog/location areas. The principal flow is browser entry → route selection and access checks → login or signup forms → auth state and API requests; shared layout and form components support the screens. Blog and location routes are present, though their full domain behavior is not established by the excerpts. Relationships below are limited to source-index references and shown calls; unsampled page and API internals are not inferred.

Main entry points: [`src/app/routes/Routes.tsx`](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/app/routes/Routes.tsx) (Route table), [`src/features/auth/authSlice.ts`](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/features/auth/authSlice.ts) (Auth state), [`src/features/auth/components/SignUpForm.tsx`](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/features/auth/components/SignUpForm.tsx) (Signup form), [`src/main.tsx`](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/main.tsx) (App entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Application routing"]
  node_entry["App entry<br/>[main.tsx]"]
  node_app["App shell<br/>[App.tsx]"]
  node_routes["Route table<br/>[Routes.tsx]"]
  node_access["Protected access<br/>[ProtectedRoute.tsx]"]
  node_authroutes["Auth routes<br/>[Auth.tsx]"]
  node_blog["Blog routes<br/>[Blog.tsx]"]
  node_location["Location routes<br/>[Location.tsx]"]
  node_rootlayout["Route layout<br/>[Root.tsx]"]
end

subgraph group_auth["Authentication"]
  node_login["Login flow<br/>[Login.tsx]"]
  node_signup["Signup flow<br/>[SignUp.tsx]"]
  node_loginform["Login form<br/>[LoginForm.tsx]"]
  node_signupform["Signup form<br/>[SignUpForm.tsx]"]
  node_authstate["Auth state<br/>[authSlice.ts]"]
  node_authapi["Auth API<br/>[api.ts]"]
  node_storagecheck["Session check"]
end

subgraph group_shared["Shared UI and state"]
  node_layout["Page chrome<br/>[Layout.tsx]"]
  node_nav["Navigation<br/>[Navbar.tsx]"]
  node_formprovider["Form provider"]
  node_formcontrols["Form controls<br/>[ReactHookInput.tsx]"]
  node_toast["Toast messages<br/>[displayToaster.ts]"]
end

subgraph group_infra["Client infrastructure"]
  node_redux[("Redux store<br/>[store.ts]")]
  node_reducer["Root reducer<br/>[rootReducer.ts]"]
  node_requests["HTTP requests<br/>[apiRequests.ts]"]
  node_interceptors["Axios interceptors"]
end

node_user(("Browser user"))

node_user -->|"opens"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"provides"| node_routes
node_app -->|"dispatches status"| node_authstate
node_routes -->|"mounts"| node_storagecheck
node_routes -->|"routes to"| node_rootlayout
node_routes -->|"guards"| node_access
node_routes -->|"registers"| node_authroutes
node_routes -->|"registers"| node_blog
node_routes -->|"registers"| node_location
node_rootlayout -->|"renders"| node_layout
node_layout -->|"renders"| node_nav
node_authroutes -->|"routes to"| node_login
node_authroutes -->|"routes to"| node_signup
node_login -->|"renders"| node_loginform
node_signup -->|"renders"| node_signupform
node_login -->|"wraps form"| node_formprovider
node_signup -->|"wraps form"| node_formprovider
node_signupform -->|"dispatches registration"| node_authstate
node_authstate -->|"thunks call"| node_authapi
node_authapi -->|"uses"| node_requests
node_signupform -->|"uses"| node_formcontrols
node_signupform -->|"shows success"| node_toast
node_storagecheck -->|"dispatches status"| node_authstate
node_access -->|"reads selector"| node_authstate
node_entry -->|"configures provider"| node_redux
node_redux -->|"uses"| node_reducer
node_reducer -->|"includes"| node_authstate
node_requests -->|"uses"| node_interceptors
node_interceptors -->|"reports errors"| node_toast

click node_entry "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/main.tsx"
click node_app "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/app/App.tsx"
click node_routes "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/app/routes/Routes.tsx"
click node_access "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/app/routes/ProtectedRoute.tsx"
click node_authroutes "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/app/routes/auth/Auth.tsx"
click node_blog "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/app/routes/blog/Blog.tsx"
click node_location "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/app/routes/location/Location.tsx"
click node_rootlayout "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/app/Root.tsx"
click node_layout "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/layouts/Layout.tsx"
click node_nav "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/components/layout/Navbar.tsx"
click node_login "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/features/auth/Login.tsx"
click node_signup "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/features/auth/SignUp.tsx"
click node_loginform "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/features/auth/components/LoginForm.tsx"
click node_signupform "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/features/auth/components/SignUpForm.tsx"
click node_authstate "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/features/auth/authSlice.ts"
click node_authapi "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/features/auth/services/api.ts"
click node_formprovider "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/context/ReactHookFormProvider.tsx"
click node_formcontrols "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/components/ui/Form/ReactHookInput.tsx"
click node_redux "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/lib/redux/store.ts"
click node_reducer "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/lib/redux/rootReducer.ts"
click node_requests "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/lib/api/apiRequests.ts"
click node_interceptors "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/lib/api/axiosInterceptors.ts"
click node_storagecheck "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/components/utils/CheckLocalStorageValues.tsx"
click node_toast "https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/utils/displayToaster.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_app,node_routes,node_access,node_authroutes,node_blog,node_location,node_rootlayout,node_user toneBlue
class node_login,node_signup,node_loginform,node_signupform,node_authstate,node_authapi,node_storagecheck toneAmber
class node_layout,node_nav,node_formprovider,node_formcontrols,node_toast toneMint
class node_redux,node_reducer,node_requests,node_interceptors toneRose
```

## Components

### Application routing

- [App entry](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/main.tsx): `src/main.tsx`
- [App shell](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/app/App.tsx): `src/app/App.tsx`
- [Route table](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/app/routes/Routes.tsx): `src/app/routes/Routes.tsx`
- [Protected access](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/app/routes/ProtectedRoute.tsx): `src/app/routes/ProtectedRoute.tsx`
- [Auth routes](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/app/routes/auth/Auth.tsx): `src/app/routes/auth/Auth.tsx`
- [Blog routes](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/app/routes/blog/Blog.tsx): `src/app/routes/blog/Blog.tsx`
- [Location routes](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/app/routes/location/Location.tsx): `src/app/routes/location/Location.tsx`
- [Route layout](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/app/Root.tsx): `src/app/Root.tsx`

### Authentication

- [Login flow](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/features/auth/Login.tsx): `src/features/auth/Login.tsx`
- [Signup flow](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/features/auth/SignUp.tsx): `src/features/auth/SignUp.tsx`
- [Login form](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/features/auth/components/LoginForm.tsx): `src/features/auth/components/LoginForm.tsx`
- [Signup form](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/features/auth/components/SignUpForm.tsx): `src/features/auth/components/SignUpForm.tsx`
- [Auth state](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/features/auth/authSlice.ts): `src/features/auth/authSlice.ts`
- [Auth API](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/features/auth/services/api.ts): `src/features/auth/services/api.ts`
- [Session check](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/components/utils/CheckLocalStorageValues.tsx): `src/components/utils/CheckLocalStorageValues.tsx`

### Shared UI and state

- [Page chrome](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/layouts/Layout.tsx): `src/layouts/Layout.tsx`
- [Navigation](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/components/layout/Navbar.tsx): `src/components/layout/Navbar.tsx`
- [Form provider](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/context/ReactHookFormProvider.tsx): `src/context/ReactHookFormProvider.tsx`
- [Form controls](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/components/ui/Form/ReactHookInput.tsx): `src/components/ui/Form/ReactHookInput.tsx`
- [Toast messages](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/utils/displayToaster.ts): `src/utils/displayToaster.ts`

### Client infrastructure

- [Redux store](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/lib/redux/store.ts): `src/lib/redux/store.ts`
- [Root reducer](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/lib/redux/rootReducer.ts): `src/lib/redux/rootReducer.ts`
- [HTTP requests](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/lib/api/apiRequests.ts): `src/lib/api/apiRequests.ts`
- [Axios interceptors](https://github.com/dikxak/paradise-camp-frontend-v2/blob/main/src/lib/api/axiosInterceptors.ts): `src/lib/api/axiosInterceptors.ts`

### Other components

- **Browser user**

## Connections

- Browser user → App entry: opens
- App entry → App shell: renders (evidence: `src/main.tsx`)
- App shell → Route table: provides (evidence: `src/app/App.tsx`)
- App shell → Auth state: dispatches status (evidence: `src/app/App.tsx`)
- Route table → Session check: mounts (evidence: `src/app/routes/Routes.tsx`)
- Route table → Route layout: routes to (evidence: `src/app/routes/Routes.tsx`)
- Route table → Protected access: guards (evidence: `src/app/routes/Routes.tsx`)
- Route table → Auth routes: registers (evidence: `src/app/routes/Routes.tsx`)
- Route table → Blog routes: registers (evidence: `src/app/routes/Routes.tsx`)
- Route table → Location routes: registers (evidence: `src/app/routes/Routes.tsx`)
- Route layout → Page chrome: renders (evidence: `src/app/Root.tsx`)
- Page chrome → Navigation: renders (evidence: `src/layouts/Layout.tsx`)
- Auth routes → Login flow: routes to (evidence: `src/app/routes/auth/Auth.tsx`)
- Auth routes → Signup flow: routes to (evidence: `src/app/routes/auth/Auth.tsx`)
- Login flow → Login form: renders (evidence: `src/features/auth/Login.tsx`)
- Signup flow → Signup form: renders (evidence: `src/features/auth/SignUp.tsx`)
- Login flow → Form provider: wraps form (evidence: `src/features/auth/Login.tsx`)
- Signup flow → Form provider: wraps form (evidence: `src/features/auth/SignUp.tsx`)
- Signup form → Auth state: dispatches registration (evidence: `src/features/auth/components/SignUpForm.tsx`)
- Auth state → Auth API: thunks call (evidence: `src/features/auth/authSlice.ts`)
- Auth API → HTTP requests: uses (evidence: `src/features/auth/services/api.ts`)
- Signup form → Form controls: uses (evidence: `src/features/auth/components/SignUpForm.tsx`)
- Signup form → Toast messages: shows success (evidence: `src/features/auth/components/SignUpForm.tsx`)
- Session check → Auth state: dispatches status (evidence: `src/components/utils/CheckLocalStorageValues.tsx`)
- Protected access → Auth state: reads selector
- App entry → Redux store: configures provider (evidence: `src/main.tsx`)
- Redux store → Root reducer: uses (evidence: `src/lib/redux/store.ts`)
- Root reducer → Auth state: includes (evidence: `src/lib/redux/rootReducer.ts`)
- HTTP requests → Axios interceptors: uses (evidence: `src/lib/api/apiRequests.ts`)
- Axios interceptors → Toast messages: reports errors (evidence: `src/lib/api/axiosInterceptors.ts`)
