{"id":29024640,"url":"https://github.com/shahrintarin/mathematter","last_synced_at":"2026-04-12T00:05:08.382Z","repository":{"id":301152596,"uuid":"1008322506","full_name":"ShahrinTarin/mathematter","owner":"ShahrinTarin","description":"MathMatter is an interactive web application designed to make learning mathematics engaging, accessible, and intuitive.","archived":false,"fork":false,"pushed_at":"2025-06-25T11:31:29.000Z","size":226,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-25T12:27:37.333Z","etag":null,"topics":["css","daisyui","expressjs","firebase","html","javascript","jwt","jwtauthentication","mongodb","nodejs","react"],"latest_commit_sha":null,"homepage":"https://mathmatter-by-shahrin-tarin.web.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShahrinTarin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-25T11:15:26.000Z","updated_at":"2025-06-25T11:33:41.000Z","dependencies_parsed_at":"2025-06-25T12:39:22.171Z","dependency_job_id":null,"html_url":"https://github.com/ShahrinTarin/mathematter","commit_stats":null,"previous_names":["shahrintarin/mathematter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ShahrinTarin/mathematter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShahrinTarin%2Fmathematter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShahrinTarin%2Fmathematter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShahrinTarin%2Fmathematter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShahrinTarin%2Fmathematter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShahrinTarin","download_url":"https://codeload.github.com/ShahrinTarin/mathematter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShahrinTarin%2Fmathematter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261997991,"owners_count":23242311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","daisyui","expressjs","firebase","html","javascript","jwt","jwtauthentication","mongodb","nodejs","react"],"created_at":"2025-06-26T04:18:31.533Z","updated_at":"2026-04-12T00:05:08.338Z","avatar_url":"https://github.com/ShahrinTarin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📚🧪MathMatter♾️🌠\n\n## Purpose\nMathMatter is an interactive web application designed to make learning mathematics engaging, accessible, and intuitive. Whether you're a student strengthening core concepts or a math enthusiast solving advanced problems, MathMatter provides a dynamic platform with practice tools, problem sets, visualizations, and personalized progress tracking. With real-time feedback and a clean UI, it simplifies complex topics and fosters confident learning in a fun, gamified environment.\n\n\n## Live URL\n(https://mathmatter-by-shahrin-tarin.web.app/)\n\n## Key Features\n- **Responsive Design**: A clean, user-friendly layout with sections for a header, and footer.Seamless browsing with React and React Router.\n- **Top Blogs** – Retrieve the top 10 blogs based on the word count of the long description.\n- **Get All Blogs** – Filter blogs by `category` or `title` using query parameters.\n- **Long Description's length Based Ranking**: Blogs sorted by length of long description  for easy discovery.\n- **User-Generated Blogs**: Upload Blogs with images, description, and categories.\n- **Interactive Blog Cards**:comment, edit, or delete Blogs with real-time updates.\n- **Personalized Blog  Collections**: Filter Blogs by Blog's Title.\n- **React-motion**:Motion increase the user experience.\n- **Add Comment** – Post comments on individual blogs.\n- **View Comments** – You can see all comments for a specific blog.\n- **Add to Wishlist** – Add a blog to a user’s wishlist (duplicate prevention included).\n- **Get Wishlist** – View all wishlist items for a specific user (requires JWT verification).\n- **Delete Wishlist Item** – Remove a specific item from the wishlist by ID.\n\n\n## NPM Packages Used\n- **React**: Core library for building UI components.\n- **React Router**: Enables single-page app routing for quizzes, profiles, etc.\n- **react-dom**: Supports rendering React components in the DOM (included with Create React App).\n- **sweet-alert2**: Provides a customizable, modern popup library for alerts and confirmations in web applications. Easily integrated with React to enhance user interactions with styled, animated dialogs, replacing basic browser alerts.\n- **react-icons**: Offers a collection of popular icon libraries (e.g., Font Awesome, Material Icons) as React components. Simplifies adding scalable, customizable icons to React apps, enhancing UI with minimal setup.\n- **Framer Motion**: Adds sleek transitions and UI animations.\n- **styled-components:**: Facilitates reusable, scoped CSS styling for recipe cards and buttons, ensuring maintainable and consistent design (npm install styled-components).\n---\n\n## 📂 Project Structure\n\n```\nsrc/\n├── assets/          # Static assets\n├── components/      # Reusable components\n├── contexts/        # Context providers\n├── hooks/           # Custom hooks\n├── pages/           # Page components\n├── routes/          # App routing\n```\n\n## 🚀 Setup Instructions\n\n### Prerequisites\n\n- Node.js (v14 or later)\n- MongoDB Atlas account\n- Firebase project with Service Account\n\n### Installation Steps\n\n1. **Clone the repository**\n\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd project-directory\n   ```\n\n2. **Install dependencies**\n\n   ```bash\n   npm install\n   ```\n\n3. **Set up environment variables** Create a `.env` file in root directory with\n   these variables:\n\n   ```\n   PORT=3000\n   DB_USER=your_mongodb_username\n   DB_PASS=your_mongodb_password\n   JWT_SECRET_KEY=your_jwt_secret\n   FB_SERVICE_KEY=your_firebase_service_account_base64\n   ```\n\n4. **Run the server**\n\n   ```bash\n   npm start\n   # or for development\n   npm run dev\n   ```\n\n5. **Test the server** The server should be running at:\n   ```\n   http://localhost:3000\n   ```\n   ---\n\n   ## Live URL For Backend\n(https://assignment-11-server-two-drab.vercel.app/)\n\n## ⚙️ Tech Stack\n\n| Tech           | Usage                        |\n|----------------|------------------------------|\n| Node.js        | Backend runtime              |\n| Express.js     | Web server framework         |\n| MongoDB        | Database (with collections: blogs, wishlist, comments) |\n| Firebase Admin | JWT authentication \u0026 decoding |\n| Cookie-Parser  | JWT cookie handling          |\n| CORS           | Cross-origin resource sharing |\n\n---\n\n## 🔐 Middleware\n\n- **`verifyJWT`**: Ensures requests have a valid Firebase ID token and attaches the decoded email to the request.\n- Applies to secure endpoints like `GET /wishlist/:email` and `POST /blogs`.\n\n---\n\n\n\n## 📁 API Endpoints Overview\n\n| Method | Route                     | Description                           |\n|--------|---------------------------|---------------------------------------|\n| GET    | `/blogs`                  | Get all blogs with optional filters   |\n| GET    | `/blogs/:id`              | Get a single blog by ID               |\n| POST   | `/blogs`                  | Add a new blog (JWT required)         |\n| PUT    | `/blogs/:id`              | Update a blog                         |\n| GET    | `/recentblogs`            | Get the 6 latest blogs                |\n| GET    | `/topblogs`               | Get top 10 blogs (by description size)|\n| GET    | `/wishlist/:email`        | Get user’s wishlist (JWT required)    |\n| POST   | `/wishlist/:blogId`       | Add to wishlist (prevents duplicates) |\n| DELETE | `/wishlist/:id`           | Delete wishlist item                  |\n| POST   | `/comment/:blogId`        | Add a comment to a blog               |\n| GET    | `/comment/:blogId`        | View all comments for a blog          |\n\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahrintarin%2Fmathematter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshahrintarin%2Fmathematter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshahrintarin%2Fmathematter/lists"}