Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asilvafx/react-firebase-db-crud
Realtime Database (Create, read, update and delete), using Vite + React
https://github.com/asilvafx/react-firebase-db-crud
crud database firebase javascript react
Last synced: about 1 month ago
JSON representation
Realtime Database (Create, read, update and delete), using Vite + React
- Host: GitHub
- URL: https://github.com/asilvafx/react-firebase-db-crud
- Owner: asilvafx
- License: mit
- Created: 2024-12-03T06:51:31.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-03T09:33:03.000Z (about 1 month ago)
- Last Synced: 2024-12-03T09:34:14.200Z (about 1 month ago)
- Topics: crud, database, firebase, javascript, react
- Language: JavaScript
- Homepage: https://react-firebase-db-crud.vercel.app/
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# React App: Firebase Hosting & Realtime Database
A lightweight, production-ready boilerplate for React projects built on Vite. This setup includes essential dependencies for modern web development, such as Firebase services and tools, Axios for API requests, i18n for internationalization, and React Router for route management. Includes Twilio for SMS and voice communications, Tailwind CSS for styling, Flowbite and Shadcn for Better UI UX, ESLint for code quality, and support for environment variables.
## Features
- **React 18** with **Vite** for fast development
- **Firebase SDK** for Hosting & Realtime NOSQL Database
- **Axios** for easy HTTP requests
- **CryptoJS** encryption standards
- **Cookies-js** for handling cookies
- **GDPR** for Cookie Consent
- **Twilio** for SMS & Voice services
- **i18n** with i18next for multi-language support
- **React Router** for route management
- **Tailwind CSS** with Tailwind Merge for custom styling
- **Flowbite && Shadcn** set of design components for Tailwind CSS
- **Environment configuration** via loadEnv## Installation
1. **Clone & Install the repository**
```bash
git clone https://github.com/asilvafx/react-firebase-db-crud.git
cd react-firebase-db-crud
npm install2. **Setup Google Firebase Account**
```bash
Sign in or create a new account at, https://console.firebase.google.com/
Create new project
Add Firebase to your web app
(Optional) Check the option "Also set up Firebase Hosting for this app", if you wish to setup a hosting for your web app.
Copy your Firebase configuration
Update the configuration in your .env-sample at your root directory
Rename the .env-sample to .env3. **Edit Realtime Database "Rules" in your Firebase Console**
```bash
{ "rules": {
".read": "now < 1735772400000", // 2025-1-2
".write": "now < 1735772400000", // 2025-1-2
"users": {
".indexOn": ["uid", "email"]
} } }3. **Development**
```bash
npm run dev4. **(Optional, Hosting) Install Firebase CLI**
```bash
npm install -g firebase-tools
firebase login
firebase init hosting
5. **Build**
```bash
npm run build
(Optional, Hosting) Run, firebase deploy