Fireact Core is a React component library that provides essential user authentication and profile management features for web applications. Built with TypeScript, TailwindCSS, and Firebase Authentication, it offers a complete solution for user sign-up, sign-in, password reset, and profile management functionalities.
Instead of forking this repository, we recommend using the @fireact.dev/core package in your web application. Please refer to our official documentation for detailed installation and usage instructions.
We welcome contributions from the community! Here's how you can help:
We are committed to providing a welcoming and inclusive experience for everyone. We expect all participants to adhere to our Code of Conduct:
- Be respectful and inclusive of differing viewpoints and experiences
- Use welcoming and inclusive language
- Be collaborative and constructive in your communication
- Focus on what is best for the community
- Show empathy towards other community members
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Make your changes
- Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
Please ensure your PR:
- Includes a clear description of the changes
- Updates relevant documentation
- Adds tests if applicable
- Follows the existing code style
- Passes all tests
To develop Fireact Core locally, follow these steps:
- Node.js (v14 or later)
- npm (Node Package Manager)
- Firebase account
-
Clone the repository:
git clone https://github.com/fireactjs/core.git cd core
-
Install the dependencies:
npm install
Create a config.json
file in the src
directory with your Firebase configuration:
{
"firebase": {
"apiKey": "YOUR_API_KEY",
"authDomain": "YOUR_AUTH_DOMAIN",
"projectId": "YOUR_PROJECT_ID",
"storageBucket": "YOUR_STORAGE_BUCKET",
"messagingSenderId": "YOUR_MESSAGING_SENDER_ID",
"appId": "YOUR_APP_ID"
},
"socialLogin": {
"google": true,
"microsoft": false,
"facebook": false,
"apple": false,
"github": false,
"twitter": false,
"yahoo": false
},
"pages": {
"home": "/",
"dashboard": "/dashboard",
"profile": "/profile",
"editName": "/edit-name",
"editEmail": "/edit-email",
"changePassword": "/change-password",
"deleteAccount": "/delete-account",
"signIn": "/signin",
"signUp": "/signup",
"resetPassword": "/reset-password"
}
}
-
Install Firebase CLI:
npm install -g firebase-tools
-
Log in to Firebase:
firebase login
-
Initialize Firebase in your project:
firebase init
Select Firestore and Hosting, and follow the prompts.
You have two options for local development:
For rapid development with hot reloading:
npm run dev
Open your browser and navigate to http://localhost:5173
.
For testing with Firebase services:
-
Build the application:
npm run build
-
Start the Firebase emulators for Authentication, Firestore, and Hosting:
firebase emulators:start --only auth,firestore,hosting
This will serve the built application through Firebase Hosting emulator while providing local Authentication and Firestore services.
For detailed information about developing components for the @fireact.dev/core package, please visit our official documentation.
Create a production build:
npm run build
This project is open source and available under the MIT License.