/Auth-react

Primary LanguageJavaScript

Authentication with React and Supabase

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.

Table of Contents


Overview

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.

Technologies Used

  • React - Frontend framework
  • Supabase - Backend-as-a-service for authentication, database, and storage

Additional Packages

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

Setup Instructions

  1. Clone the Repository
    Fork and clone this repository to your local machine:

    git clone https://github.com/king101-bit/Auth-react
    
  2. Install Dependencies Run the following command to install all required dependencies:

npm install
  1. Run the Development Server Start the server with
npm run dev
  1. 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

Usage

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.

Contributing

Contributions are welcome! To contribute:

  1. Fork the repository
  2. Create a new branch:git checkout -b feature/your-feature-name
  3. Make your changes and commit:git commit -m 'Add your feature'
  4. Push to your forked repository: git push origin feature/your-feature-name
  5. Submit a pull request

Made with Supabase