This project serves as a starter kit for React applications utilizing Supabase for authentication, structured within an NX Monorepo. It's designed for quick scalability and integration with other frameworks like Angular and Vue. To ensure easy portability, all functions related to Supabase are located in the libs/utils
folder. React hooks are used as wrappers around these utility functions, maintaining a clean and framework-agnostic core.
- React framework with Supabase authentication
- NX Monorepo setup for scalable architecture
pnpm
for efficient and fast package management- Isolated Supabase functions in
libs/utils
for easy portability - React hooks as interfaces to utility functions
- Ensure you have pnpm installed as the project uses
pnpm
instead ofnpm
.
- Clone the repository:
git clone https://github.com/griiettner/react-supabase-auth-mui-nx.git
- Install dependencies:
pnpm install
- Set up your Supabase project and obtain the necessary API keys.
- Update the
.env
file with your Supabase credentials and other environment-specific configurations.
- To start the application, run:
pnpm start
- For Storybook, run:
pnpm storybook:dev
libs/utils
: Contains all Supabase-related functions for authentication and database operations, ensuring ease of transferability to other frameworks.hooks
: React hooks acting as interfaces to the utility functions inlibs/utils
.
Contributions to improve the starter kit are welcome. Please follow the standard procedure:
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -am 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a pull request
Distributed under the MIT.