{"id":19829595,"url":"https://github.com/gracefullcoder/koe_the_cafe_mern_app","last_synced_at":"2026-06-11T11:31:07.285Z","repository":{"id":228641319,"uuid":"771716382","full_name":"gracefullcoder/Koe_The_Cafe_MERN_APP","owner":"gracefullcoder","description":"This project showcases a comprehensive café management system with extensive features for both users and administrators.","archived":false,"fork":false,"pushed_at":"2025-04-27T14:08:13.000Z","size":84961,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-27T15:20:48.788Z","etag":null,"topics":["firebase-push-notifications","gmail-api","mern-stack","razorpay-payment","session-management","websockets"],"latest_commit_sha":null,"homepage":"https://koe-the-cafe.onrender.com","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/gracefullcoder.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-03-13T20:16:50.000Z","updated_at":"2025-04-27T14:08:16.000Z","dependencies_parsed_at":"2024-04-07T07:31:36.541Z","dependency_job_id":"40a4ca94-04e4-4ff4-a83e-22a4ec169366","html_url":"https://github.com/gracefullcoder/Koe_The_Cafe_MERN_APP","commit_stats":null,"previous_names":["gracefullcoder/admin_koe_the_cafe","gracefullcoder/koe_the_cafe_mern_app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gracefullcoder/Koe_The_Cafe_MERN_APP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gracefullcoder%2FKoe_The_Cafe_MERN_APP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gracefullcoder%2FKoe_The_Cafe_MERN_APP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gracefullcoder%2FKoe_The_Cafe_MERN_APP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gracefullcoder%2FKoe_The_Cafe_MERN_APP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gracefullcoder","download_url":"https://codeload.github.com/gracefullcoder/Koe_The_Cafe_MERN_APP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gracefullcoder%2FKoe_The_Cafe_MERN_APP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34197393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["firebase-push-notifications","gmail-api","mern-stack","razorpay-payment","session-management","websockets"],"created_at":"2024-11-12T11:19:18.331Z","updated_at":"2026-06-11T11:31:07.049Z","avatar_url":"https://github.com/gracefullcoder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Koe the Cafe\n\nWelcome to Koe the Cafe! Koe the Café is a full-stack web application built using the MERN stack. This project showcases a comprehensive café management system with extensive features for both users and administrators. With a strong emphasis on frontend aesthetics and functionality, Koe the Cafe offers a delightful journey for visitors.\n\n## Deployment\nDeployment Link - [Koe the Cafe Website!](https://koe-the-cafe.onrender.com/)\nDemo Video - [Video Link](https://drive.google.com/file/d/1uEsjoSL1BImlN4d9T457sI1HKbOcL8Sf/view?usp=sharing)\n\n## Key Features\n\n- **MVC Structured Code**:\n  - Organized codebase following the Model-View-Controller pattern for better code maintainability and scalability.\n  - Separation of concerns, making the development process more efficient.\n\n- **User Features**:\n  - **Profile Management**: Update personal details and profile photo.\n  - **Table Booking**: Book, view, modify, or cancel table reservations.\n  - **Workshop Registration**: Register, view, and manage workshop participation.\n  - **Testimonials**: Add, edit, or delete testimonials.\n  - **Dashboard**: Centralized view of all user activities and perform CRUD operations.\n\n- **Admin Features**:\n  - **Dynamic Content Management**: Update, add, or remove website content in real-time, including event sections, specialty sections, hero sections, and workshop sections, ensuring that the website is always fresh and engaging.\n  - **Workshop Management**: Create new workshops, manage workshop registrations, and handle workshop cancellations.\n  - **User Management**: Perform CRUD operations on registered users, including managing roles and permissions.\n  - **Table Booking Management**: View and manage table bookings, including today's bookings for efficient customer service.\n  - **Notification System**: Create and send notifications to users via the user dashboard, as well as send emails to all registered users using Nodemailer.\n  - **Testimonial Management**: Manage user testimonials for showcasing customer feedback.\n  - **Analytics Dashboard**: View detailed analytics for revenue, orders, users, and dishes (daily, weekly, and monthly). See most selling, trending, and most rated dishes, along with user comments.\n\n- **Authentication**:\n  - Implemented with Google OAuth strategy for seamless and secure user login.\n  - Local authentication strategy using Passport.js for traditional email/password login.\n  - Secure handling of user credentials with hashing and salting.\n\n- **Authorization**:\n  - Role-based access control to restrict access to admin features.\n  - Ensures only authorized users can perform sensitive operations.\n\n- **Notifications and Emails**:\n  - Send notifications to users directly from the admin dashboard.\n  - Use Nodemailer to send emails to all registered users, ensuring effective communication.\n\n- **Express Session**:\n  - Session management using `express-session` with MongoDB as the store to persist session data.\n  - Ensures user sessions remain consistent across server restarts.\n\n- **Custom Error Handling**:\n  - Centralized error handling mechanism to catch and manage errors effectively.\n  - Custom error messages and status codes for better debugging and user experience.\n\n- **Validation**:\n  - Comprehensive validation using Joi on both client-side and server-side to ensure data integrity.\n  - Prevents invalid data from being processed or stored in the database.\n\n- **Visitor Interaction**: Visitors can book tables for dining experiences and register for workshops directly from the website, enhancing user engagement.\n\n- **Real-Time Updates**: Utilized WebSockets to enable real-time updates for order statuses and table bookings.\n\n## Technologies Used\n\n- **Backend**: Node.js, Express.js\n- **Database**: MongoDB\n- **Frontend**: React.js, SASS for styling\n- **Real-Time Communication**: WebSockets for instant updates\n- **Payment Integration**: Razorpay for secure transactions\n- **Environment Management**: dotenv\n- **Schema Validation**: Joi\n- **Session Management**: express-session, connect-mongo\n- **Authentication**: Passport.js (Google Strategy, Local Strategy), passport-google-oidc, passport-local-mongoose\n- **Email Handling**: Gmail API for sending emails\n- **Push Notifications**: Firebase Cloud Messaging for real-time notifications\n- **Data Visualization**: Graphs and charts for admin dashboard analytics\n- **Other Tools**: Multer for file uploads, ImageKit for image handling, method-override for RESTful routing\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js and npm installed\n- MongoDB installed\n\n### Installation\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/your-username/koe-the-cafe.git\n    ```\n\n2. Set up the frontend:\n    - Navigate to the `frontend` directory:\n      ```bash\n      cd frontend\n      ```\n    - Create a `.env` file and add the required environment variables.\n    - Install dependencies:\n      ```bash\n      npm install\n      ```\n    - Start the development server:\n      ```bash\n      npm run dev\n      ```\n\n3. Set up the backend:\n    - In a new terminal, navigate to the `backend` directory:\n      ```bash\n      cd backend\n      ```\n    - Create a `.env` file and add the required environment variables.\n    - Install dependencies:\n      ```bash\n      npm install\n      ```\n    - Start the backend server:\n      ```bash\n      node server.js\n      ```\n\n### Configuration\n\n- **Frontend**: Ensure the `.env` file in the `frontend` directory contains all necessary environment variables (e.g., API URLs, Firebase config).\n- **Backend**: Ensure the `.env` file in the `backend` directory contains all necessary environment variables (e.g., MongoDB URL, Razorpay credentials, Gmail API credentials).\n\n## Running the Application\n\nAfter setting up both the frontend and backend, the application should be accessible at `http://localhost:5173` for the frontend and `http://localhost:8080` for the backend (default ports).\n\nWith these steps and features, Koe the Cafe ensures both administrators and users have a smooth and enjoyable experience managing and interacting with the website. Explore the live deployment and feel free to contribute to the project!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgracefullcoder%2Fkoe_the_cafe_mern_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgracefullcoder%2Fkoe_the_cafe_mern_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgracefullcoder%2Fkoe_the_cafe_mern_app/lists"}