Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jai0212/chore-hero
A fullstack web application to connect users with skilled professionals for services like cleaning, plumbing, etc. Created using the MERN Stack (MongoDB, Express, React, Node.js) with Vite.
https://github.com/jai0212/chore-hero
axios bcrypt cors css dotenv express fullstack html javascript jsonwebtoken mern-stack mongodb mongoose multer nodejs react stripe validator vite
Last synced: about 1 month ago
JSON representation
A fullstack web application to connect users with skilled professionals for services like cleaning, plumbing, etc. Created using the MERN Stack (MongoDB, Express, React, Node.js) with Vite.
- Host: GitHub
- URL: https://github.com/jai0212/chore-hero
- Owner: Jai0212
- License: other
- Created: 2024-06-07T09:37:09.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-20T10:32:39.000Z (5 months ago)
- Last Synced: 2024-07-21T08:36:16.428Z (5 months ago)
- Topics: axios, bcrypt, cors, css, dotenv, express, fullstack, html, javascript, jsonwebtoken, mern-stack, mongodb, mongoose, multer, nodejs, react, stripe, validator, vite
- Language: JavaScript
- Homepage: https://chore-hero.netlify.app
- Size: 6.07 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chore Hero
[![Netlify Status](https://api.netlify.com/api/v1/badges/65c2db26-da31-4712-a791-6e8995f1b338/deploy-status)](https://app.netlify.com/sites/chore-hero/deploys)
![License](https://img.shields.io/badge/license-Attribution--NonCommercial--NoDerivatives--4.0--International-red)Chore Hero is a comprehensive full-stack web application designed to connect users with skilled professionals for a variety of services, including cleaning, plumbing, gardening, dog walking, and more. Whether it's a one-time task or a regular service, Chore Hero's talented heroes are here to get your chores done efficiently and reliably!
**Chore Hero Website**: https://chore-hero.netlify.app/
**Chore Hero Admin Website**: https://chore-hero-admin.netlify.app/## Overview
Chore Hero is built using the **MERN Stack** (MongoDB, Express, React, Node.js) with Vite for the frontend bundling.There is also an admin website to control website changes and allow our heroes to add services.
## Features
* **User-Friendly Service Ordering**: Easily order services from a user-friendly website to get your chores done.
* **Admin Control Panel**: An admin website allows heroes to manage and add services, ensuring an up-to-date service offering.
* **Fully Functioning Website**: Features include user sign-up, add to cart, and order placement functionalities.
* **Secure Payment Processing**: Payment authentication is handled using Stripe, with verification through API calls.
* **Robust Authentication System**: Secure user authentication and data protection using middleware and tokenization.
* **Order Management**: Users can view their orders, with their cart and order data securely stored in the database.
* **Responsive Design**: The website is optimized for use on laptops, phones and tablets, providing a seamless experience across all devices.## Technical Aspects
* **Stack**: MERN (MongoDB, Express, React, Node.js)
* **Frontend**: Developed using Vite and React.
* **Backend**: Implemented with Node.js and Express.
* **Languages**: HTML, CSS, and JavaScript.
* **Database**: MongoDB stores login details, user carts, orders, services offered, and hero specializations.
* **Payment Integration**: Stripe is used for secure payment processing.
* **Hosting**: Frontend and admin websites are hosted on Netlify, and the backend is hosted on Render.
### Packages/Dependencies:
* **mongoose**: connects to MongoDB database
* **axios**: generates api calls
* **cors**: allows frontend-backend interaction
* **express**: establishes routes, middleware and provides web-app framework
* **bcrypt**: encrypts user details for security reasons
* **dotenv**: manages environment variables securely such as API and secret keys
* **jsonwebtoken**: creates tokens for user verification
* **stripe**: integrates payment processing
* **multer**: handles image uploads to the backend
* **validator**: verifies email addresses
The frontend and admin website on a phone and tablet
### Files
- `frontend` - React/Vite main frontend code
- `backend` - JavaScript, Node.js, Express.js, MongoDB backend
- `admin` - React/Vite admin frontend code## Usage - Frontend
To experience Chore Hero, visit the website: https://chore-hero.netlify.app/### Getting Started:
* **Initial Load Time**: Please note that the main services may take about 45 seconds to load initially as the backend activates.
* **Sign Up**: Create an account by signing up on the website.
* **Add Services to Cart**: Browse and select the services you need. You can describe the service and choose a convenient date and time for the task.
* **View Our Heroes**: Scroll to the bottom of the website to see a list of our talented heroes. Click on their icons to view the services they specialize in.
* **Checkout**: After adding the desired services to your cart, proceed to checkout and enter your details.
* **Payment**: You will be redirected to a payment page. Use a Stripe dummy card, which you can find online, to complete the transaction. Your payment will be verified, and your order will be placed.### Important Notes
* **No Actual Payment**: The payment process is simulated, so no actual transaction will occur.
* **Secure Data**: Although the data will be stored in the database, all your sensitive information, including passwords and personal details, is encrypted and secured using tokenization.
* **Placeholder Data**: The list of heroes on the website is placeholder data.## Usage - Admin
You can view the admin website from this link: https://chore-hero-admin.netlify.app/* **Initial Load Time**: Just like the main website, the admin panel may take about 45 seconds to load initially as the backend activates.
* **Select Hero**: At the top of the admin website, you'll find a dropdown menu. Choose the hero whose admin panel you want to access.
* **Add Services**: You can add a service to the existing list of services from the "Add All Services" tab. This change will be immediately reflected on the main frontend services panel (you might have to reload the frontend website)
* **Add Specializations**: In the "Add Personal Service" tab, you can specify service specializations for the selected hero. These specializations will appear on the frontend when you click on the hero's image.
* **Edit Specializations**: The "Edit Personal Services" tab allows you to modify the service specializations for the selected hero.NOTE: For any changes made in the admin to be reflected on the frontend, you might have to reload the frontend once.
The cart page on a laptop
## Sample Usage
To experience the immediate functionality of the website, you can log in to a test account:**Email**: [email protected]
**Password**: test2passwordWithin this account, multiple orders have been placed, which you can view under "My Orders" (hover over the profile icon). Additionally, some services have been added to the cart for reference.
You can also proceed to place an order using the following sample card details:
**Card Number**: 4000 0078 4000 0001
*For CVV, expiry date, and name/email, you can enter any arbitrary information.*## Installation and Requirements
If you wish to run the project locally to modify the project, follow these steps:Chore Hero Frontend and Admin:
* App.jsx is the main file with primary styling in index.css
* The various components of the webpage are under the src folder
* Assets has all the images used
* Components, context and pages has the various folders and files for each aspect of the webpageTo run the project locally, type the below in the terminal:
```bash
$ npm run dev
```Chore Hero Backend:
* The main file is server.js to initialize everything
* Uploads folder has all the images uploaded in the backend
* The controllers, routes, models and middleware are in the respective foldersTo run the backend locally, type the below in the terminal:
```bash
$ npm run server
```**NOTE**: The Stripe authentication key, jsonwebtoken key and the MongoDB link are hidden for security purposes, if you wish to modify something, make sure to use your own secret keys
## Acknowledgments
I would like to thank Netlify and Render thanks to which I was able to host the frontend and backend of my project.Additionally, the pictures for the various services and the header image were all publicly available on Google and thus were used from there.
**NOTE**: No payment made will actually be fully processed. The heroes are placeholder data and the footer contact details are for show.
*For suggestions, feedback, collaborations, or bug reports, please contact me via email: [email protected]*
Author and Date
by Jai Joshi
Updated on 20th July, 2024