{"id":24337571,"url":"https://github.com/tinyhiker/tyrell_book_store","last_synced_at":"2026-04-10T01:57:19.167Z","repository":{"id":267551355,"uuid":"901605660","full_name":"tinyHiker/tyrell_book_store","owner":"tinyHiker","description":"Tyrel Bookstore built using JavaScript, React, Express, Node, and MongoDB","archived":false,"fork":false,"pushed_at":"2025-01-17T04:07:26.000Z","size":13291,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-17T04:29:41.617Z","etag":null,"topics":["cors","dotenv","express","firebase-login","firebase-storage","mongodb","mongoose","node","react","react-redux","react-redux-toolkit","react-router","redux-toolkit-query","sweetalert2","tailwindcss"],"latest_commit_sha":null,"homepage":"https://tyrell-deployment-b1i7brw7b-taha-iqbals-projects.vercel.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/tinyHiker.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}},"created_at":"2024-12-11T01:17:40.000Z","updated_at":"2025-01-17T04:07:27.000Z","dependencies_parsed_at":"2024-12-25T20:23:52.354Z","dependency_job_id":"8b46919a-8632-4295-a6c0-fdba1acae6c9","html_url":"https://github.com/tinyHiker/tyrell_book_store","commit_stats":null,"previous_names":["tinyhiker/book-store","tinyhiker/tyrell_book_store"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyHiker%2Ftyrell_book_store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyHiker%2Ftyrell_book_store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyHiker%2Ftyrell_book_store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyHiker%2Ftyrell_book_store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinyHiker","download_url":"https://codeload.github.com/tinyHiker/tyrell_book_store/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243093584,"owners_count":20235397,"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":["cors","dotenv","express","firebase-login","firebase-storage","mongodb","mongoose","node","react","react-redux","react-redux-toolkit","react-router","redux-toolkit-query","sweetalert2","tailwindcss"],"created_at":"2025-01-18T06:15:34.158Z","updated_at":"2026-04-10T01:57:14.136Z","avatar_url":"https://github.com/tinyHiker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tyrell Bookstore\n\n**A full-stack MERN (MongoDB, Express, React, Node) bookstore application with CRUD functionality, Firebase authentication, React-Redux state management, and role-based route protection.**\n\n\u003cbr/\u003e\n\n## Click the image to see the demo video (or visit the site link)\n\n[Site Link](https://tyrell-deployment.vercel.app/)\n\n[![Watch the Video](THUMBNAIL.png)](https://www.youtube.com/watch?v=Kz64tc0Pe0A)\n\n## Technology Stack\n\n### Frontend\n- **React 18** (Vite for bundling and dev server)  \n- **React Router 7** for client-side routing  \n- **Redux Toolkit** \u0026 **RTK Query** for global state management and data fetching  \n- **Chakra UI** + **Tailwind CSS** for styling and responsive layout  \n- **Framer Motion** for animations  \n- **Chart.js** / **react-chartjs-2** for rendering analytical charts  \n- **Axios** for HTTP requests (used in some places alongside RTK Query)\n\n### Backend\n- **Node.js** \u0026 **Express** for the server and RESTful APIs  \n- **MongoDB** \u0026 **Mongoose** for database and schema modeling  \n- **CORS** for cross-origin requests  \n- **Dotenv** for environment variable management\n\n### Authentication\n- **Firebase** (`firebase.auth()`, `GoogleAuthProvider`)  \n- **Firestore** not used for data in this project, but **Realtime** authentication state is used for the front-end.  \n- Custom backend endpoints sync user data (`/api/real-users`) with MongoDB using the Firebase `uid`.\n\n\n## Application Architecture\n\n```txt\n┌─────────────────────────────────┐\n│    React Frontend (Vite)       │\n│  - Redux Toolkit               │\n│  - React Router                │\n│  - Chakra UI / Tailwind        │\n│  - Firebase Auth Context       │\n└─────────────▲──────────────────┘\n              │\n              │ (HTTP, RTK Query / Axios)\n              │\n┌─────────────┴──────────────────┐\n│      Express.js Backend        │\n│  - RESTful API routes under    │\n│    /api/                       │\n│  - Admin \u0026 Private routes      │\n└─────────────▲──────────────────┘\n              │\n              │ (ODM via Mongoose)\n              │\n┌─────────────┴──────────────────┐\n│          MongoDB Atlas         │\n│  - Users, Books, Orders, etc.  │\n└─────────────────────────────────┘\n\n```\n\n## Functionality\n1. **Add Books to Cart and Checkout**  \n\n2. **View Books By Category**  \n\n3. **Central Home Page**  \n  \n4. **View Order History**  \n\n5. **Contact Me Form**  \n   \n6. **Register and Login**  \n   \n7. **Register and Login With Google**  \n---\n\n\n## Key Features\n1. **User Registration \u0026 Login**  \n   - Firebase Authentication (Email/Password \u0026 Google OAuth)  \n   - Automatic MongoDB record creation for new users (via `RealUser` collection)\n\n2. **Protected Routes**  \n   - **PrivateRoute**: Ensures that certain pages (e.g., Orders) are accessible only to logged-in users.  \n   - **AdminRoute**: Allows only admin (or token-based) access to certain pages/statistics.\n\n3. **Redux Toolkit**  \n   - Centralized application state with `cartSlice`, `booksApi`, `ordersApi`, `quotesApi`, `realUsersApi`.  \n   - RTK Query for asynchronous data fetching and caching of books, orders, quotes, etc.\n\n4. **Bookstore Essentials**  \n   - Browse books (with author info, reviews, quotes)  \n   - Add to cart, place orders  \n   - View past orders (protected route)  \n   - Manage authors, reviews, and quotes from the admin perspective\n\n5. **UI/UX Enhancements**  \n   - **Chakra UI** \u0026 **Tailwind CSS** for styling  \n   - **Framer Motion** for smooth animations  \n   - **SweetAlert2** for polished alerts and confirmations  \n   - **Chart.js** integrated (via `react-chartjs-2`) for analytics\n\n6. **CRUD Operations**  \n   - Full suite of Create, Read, Update, Delete endpoints for books, authors, orders, users, reviews, and quotes.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyhiker%2Ftyrell_book_store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinyhiker%2Ftyrell_book_store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyhiker%2Ftyrell_book_store/lists"}