Note-It is a simple note-taking app built with React, allowing users to create, edit, delete, and manage their notes. It features a clean and intuitive UI that provides users with a seamless experience in organizing their notes.
- Create, edit, and delete notes
- Archive and restore notes
- Move notes to trash and delete permanently
- User-friendly and responsive design
- Instant editing directly on click without extra buttons
Follow these steps to get the app running on your local machine.
- Node.js (v14.x or later)
- npm or yarn (package managers)
-
Clone the repository
git clone https://github.com/lnrdgnwn/note-it.git cd note-it -
Install dependencies
npm install
-
Setup Firebase App To enable Firebase features like authentication, database, or storage, you'll need to set up Firebase.
-
Go to the Firebase Console.
-
Create a new Firebase project (or use an existing one).
-
In the Firebase Console, go to Project Settings, then add Firebase to your web app then Copy Firebase Config that includes:
apiKeyauthDomainprojectIdstorageBucketmessagingSenderIdappIdmeasurementId
-
In your project folder, There is an
.env.local.examplefile. Rename it to.env.localfile and update using your Firebase Config value.
-
-
Enable Firebase Authentication
To authenticate users with Firebase, you need to set up authentication methods like Email/Password and Google Sign-In.
-
Enable Email/Password Authentication:
- In the Firebase Console, navigate to Authentication > Sign-in method.
- Enable the Email/Password sign-in provider.
-
Enable Google Authentication:
- In the Sign-in method tab, enable the Google sign-in provider.
-
-
Create Firestore Database In Firebase, go to Firestore Database:
- Select Create database.
- Choose Start in production mode.
- Change and Set the Firestore Rules like this :
service cloud.firestore { match /databases/{database}/documents { match /notes/{noteId} { allow read, write: if request.auth != null; } } }
-
Run Server
npm run dev