This project demonstrates how to set up user authentication in a web application using React for the frontend and Supabase as the backend. Additionally, it utilizes several minor packages to enhance the user interface.
This project leverages React's flexibility and Supabase's powerful backend-as-a-service capabilities to create a secure and reliable authentication system. Supabase provides a scalable backend for user authentication and storage, while the frontend ensures a responsive and engaging user experience.
- React - Frontend framework
- Supabase - Backend-as-a-service for authentication, database, and storage
The following additional packages are used to enhance functionality and user interface:
- Boring-Avatar: A collection of customizable avatars for profile placeholders
- react-router-dom: For client-side routing
- Supabase: Provides SDK for integration with Supabase services
- @supabase/auth-ui-react: Pre-built authentication components for Supabase
- @supabase/auth-ui-shared: Shared components and utilities for Supabase authentication
-
Clone the Repository
Fork and clone this repository to your local machine:git clone https://github.com/king101-bit/Auth-react
-
Install Dependencies Run the following command to install all required dependencies:
npm install
- Run the Development Server Start the server with
npm run dev
- Supabase Configuration
Ensure you have Supabase credentials (API key and URL) configured in your
.env
file. Set up a new Supabase project if needed and add the required environment variables
Once the project is set up, you can explore the following features:
- User Authentication: Sign up, log in, and manage authentication using Supabase's backend.
- User Profile Avatars: Automatically generated avatars for users, thanks to Boring-Avatar.
To begin using the app, navigate to
http://localhost:3000
in your browser.
Contributions are welcome! To contribute:
- Fork the repository
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes and commit:
git commit -m 'Add your feature'
- Push to your forked repository:
git push origin feature/your-feature-name
- Submit a pull request