Welcome to T-Hub - Your One-Stop Shop for Trendy T-Shirts!
T-Hub is a web platform dedicated to providing a seamless and enjoyable shopping experience for T-shirt enthusiasts. Explore our extensive collection of high-quality T-shirts featuring unique designs, comfortable fabrics, and affordable prices.
-
Browse and Shop: Explore our extensive collection of T-shirts for men, women, and kids. Find the latest trends and classic styles to suit your preferences.
-
User Authentication: Create an account, log in, and enjoy personalized shopping. Keep track of your orders, save favorite items, and more.
-
Secure Checkout: Experience a secure and straightforward checkout process. Your payment information is handled with care to ensure a safe transaction.
Payment Gateway Integration: We use Razorpay for secure and efficient payment processing.
-
Order Tracking: Stay updated on the status of your orders. Track shipments and know when your stylish T-shirts will arrive.
-
Responsive Design: T-Hub is designed to provide an optimal viewing and shopping experience across various devices, including desktops, tablets, and smartphones.
Make sure you have the following installed:
git clone https://github.com/jeet-baldha/t-hub.git
cd t-hub
npm install
-
Sign up for a Razorpay account:
- Visit Razorpay and create an account.
-
Obtain your Razorpay API Key and Secret:
- Once logged in, navigate to the Dashboard and retrieve your API Key and Secret from the Settings section.
-
Configure environment variables:
-
Open your
.env
file and add the following Razorpay configuration:REACT_APP_RAZORPAY_KEY=your-razorpay-key REACT_APP_RAZORPAY_SECRET=your-razorpay-secret
Replace
your-razorpay-key
andyour-razorpay-secret
with your actual Razorpay API Key and Secret.
-
-
Navigate to the server directory:
cd server
-
Install backend dependencies:
npm install
-
Configure backend environment variables:
- Create a
.env
file in theserver
directory and set the necessary configuration values such as database connection strings, API keys, etc.
- Create a
-
Start the backend server:
node index.js
The backend server will be running at http://localhost:3000.
Note: Replace
your-backend-port
with the actual port number configured in your backend environment.
-
Navigate back to the main project directory:
cd ..
-
Start the frontend development server:
npm run dev
The frontend development server will be running at http://localhost:5173.
Now you have both the backend and frontend servers running. Open your browser and visit http://localhost:5173 to explore T-Hub.
-
Frontend:
- React.js
- Redux for state management
- Tailwind CSS for styling
-
Backend:
- Node.js
- Express.js
- MongoDB for database
-
Authentication:
- Passport.js for user authentication
-
Payment Gateway:
We welcome contributions to improve T-Hub! If you find any issues or have suggestions, please open an issue or create a pull request. See our Contribution Guidelines for more details.
This project is licensed under the MIT License.
For inquiries and support, please contact us at [email protected]
Happy shopping at T-Hub!