> For the complete documentation index, see [llms.txt](https://will-schneider.gitbook.io/react-saas/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://will-schneider.gitbook.io/react-saas/more-info.md). Agents can also search and read this documentation through its [MCP server](https://will-schneider.gitbook.io/react-saas/~gitbook/mcp).

# More Info

#### Important Files

**APP**

* **app/page.tsx** : The landing page for marketing
* **app/dashboard/page.tsx** : The dashboard page
* **app/login/page.tsx** : The login page
* **app/signup/page.tsx** : The signup page
* **app/billing/page.tsx** : The page to manage your purchases
* **app/security/page.tsx**: The page to update your password
* **app/pricing/page.tsx**: The page to review the pricing options
* **app/examples/firebase\_example**: Page example of how to do CRUD with Firestore
* **app/examples/stripe\_example**: Page example of querying all the products in Stripe dynamically

**Components**

* **components/auth/GuardAccess.tsx** : Component used to protect child components from unauthenticated users
* **components/auth/PaidAccess.tsx** : Component used to protect child components from unpaid users
* **components/auth/ForgotPasswordModal.tsx** : Modal that pops up when a user clicks forgot password
* **components/auth/Login.tsx** : The login component
* **components/auth/SignUp.tsx** : The signup component
* **components/auth/RouteUser.tsx**: Route logged in users to the dashboard page from landing, login, and signup pages
* **components/dashboard/Layout.tsx** : Combines the Sidebar and Header in a responsive dashboard layout
* **components/dashboard/Sidebar.tsx** : Used to navigate
* **components/dashboard/Header.tsx** : Shows the current page and user profile
* **components/dashboard/NavLink.tsx** : Highlights the active link in the Sidebar
* **components/dashboard/settings/Billing.tsx** : Component to manage your purchases
* **components/dashboard/settings/Security.tsx**: Component to update your password
* **components/legal/PrivacyPolicyModal.tsx** : Modal that has the privacy policy for your app
* **components/legal/TermsOfServiceModal.tsx** : Modal that has the terms of service for your app
* **components/examples/FirebasePosts.tsx** : Component for an example of how to do CRUD with Firestore
* **components/examples/StripeTesting.tsx** : Component for an example of querying all the products in Stripe dynamically
* **components/examples/Welcome.tsx** : Component to introduce developers to the template
* **components/landing/Header.tsx** : Component for the header of the landing page
* **components/landing/Hero.tsx** : Component for the hero of the landing page
* **components/landing/Footer.tsx** : Component for the footer of the landing page
* **components/payments/Pricing.tsx** : Component to view the pricing table
* **components/ui** : Default from shadcn/ui

**Context**

* **context/AuthContext** : Used to get the current state of the User
* **context/AuthContext/AuthContext.tsx** : Creates the AuthContext that is used by the AuthProvider
* **context/AuthContext/AuthContext.tsx** : Wrapping the entire application in the AuthProvider in **app/layout.tsx**
* **context/AuthContext/typings.ts** : The data that we store about each user in the AuthContext

**Firebase**

* **firebase/auth** : Sigin and Signup functions for email/password auth
* **firebase/firestore/posts/posts.ts** : Examples of interacting with Firestore (Create, Read, Update, Destroy)
* **firebase/firestore/user.ts**: Getters and setters for user in AuthContext
* **firebase/config.ts** : Connecting to your firebase account

**Stripe**

* **stripe/config.ts** : The products you want to display in your app
* **stripe/createCheckoutSession.ts** : Creates the temporary stripe link for users to checkout from
* **stripe/createPortal.ts** : Creates the temporary stripe link for users to manage their purchases
* **stripe/pricing.ts** : Creates helper functions related to pricingIDs
* **stripe/products.ts** : Creates helper functions related to productIDs

#### User Interface

* [React Icons](https://react-icons.github.io/react-icons/icons/md/) - Include popular icons in your React projects easily (Using Material Design Icons)
* [shadcn/ui](https://ui.shadcn.com/docs) - Re-usable components that you can copy and paste
* [v0](https://v0.dev/) - Generate UI with shadcn/ui from simple text prompts and images.

#### Backend

* [Firebase](https://firebase.google.com/) - A platform designed to support you throughout your app development journey
* [Stripe](https://stripe.com/) - Financial infrastructure to grow your revenue
* [Vercel](https://vercel.com) - Hosting, Logs, and Continuous Deployment

#### Learn

To learn more about the stack:

* [Next.js Documentation](https://nextjs.org/docs) - Open-source web development framework
* [Firebase Documentation](https://firebase.google.com/docs/web/setup) - Set of backend cloud computing services
  * Using Auth and Firestore
* [Stripe Documentation](https://docs.stripe.com/) - Powers online payment processing
* [React Hooks](https://react.dev/reference/react/hooks) - Use different React features
* [React Overview](https://react.dev/reference/react) - Detailed reference documentation for working with React

#### Troubleshooting

* Try refreshing your browser, sometimes on localhost the state needs to be updated.
