A web platform where users can post their used tech gadgets for sale, and other users can find and buy necessary pre-owned items at affordable prices.
- 🛍️ Sell & Buy Gadgets: Users can create posts to sell their pre-owned tech hardware. Buyers can browse listings to find budget-friendly items.
- 📋 Manage Inventory: Sellers can view all their active gadget posts in one dedicated space and instantly delete them if needed.
- 🔍 Dynamic Explore Page: Fully functional filtering pipeline driven by the backend. Users can search and sort gadgets based on parameters like Title, Category, and Maximum Price.
- 🔥 Latest Additions Grid: The home page displays a dynamic section rendering the 4 latest product listings directly fetched from the database.
- 🛡️ Secure Access: Features authentication flow using BetterAuth to secure specific item routing actions.
|
🏠 Landing / Home Interface
|
🔥 Latest Additions (Dynamic 4-Grid)
|
|
⚡ Gadget Explore Catalog (Search & Filters)
|
📋 Manage Inventory Page (Seller Panel)
|
💡 This project was specifically built to practice and get hands-on experience with TypeScript.
As my very first TypeScript full-stack project, I faced numerous configuration errors and syntax roadblocks along the way. However, debugging these strict type issues helped me understand the core foundations of type safety and robust code structure. I managed to successfully resolve the errors and fully complete the application. In the future, whenever I get more time, I plan to integrate additional systems and improve the codebase further.
- ⚡ Next.js 16 — React framework with App Routing and server rendering optimizations.
- 🛡️ TypeScript — Strict type structures for reliable state properties and parameters.
- 🔑 BetterAuth — Secure session orchestration for user authentication.
- 🎨 Tailwind CSS v4 — Modern utility-first CSS compilation engine.
- 🌼 DaisyUI — Semantic component layouts built directly on Tailwind.
- 🍞 React Hot Toast — Non-blocking dashboard status alerts and updates.
- 📦 React Icons — Clean and lightweight vector glyph icons.
- 🟢 Node.js — Event-driven server runtime environment.
- 🚂 Express.js — Fast, structural server middleware utilizing type-safe pipelines.
- 🛡️ TypeScript — Enforced static types for models, server routing, and controller layers.
- 🍃 MongoDB — Scalable NoSQL database utilizing native driver aggregation configurations.
Follow this single terminal guide to clone the repositories, configure all required environment variables, install dependencies, and run both frontend and backend concurrently.
=========================================================================
# STEP 1: CLONE REPOSITORIES & SET UP FRONTEND CLIENT
=========================================================================
git clone https://github.com/hridoy-web/ReTech.git
cd ReTech
# --- Create Frontend Environment File (.env) ---
# ReTech Frontend Url
BETTER_AUTH_URL=http://localhost:3000
MONGODB_URI=**YOUR_MONGODB_URI_HERE**
DB_NAME=**YOUR_DATABASE_NAME_HERE**
BETTER_AUTH_SECRET=**YOUR_BETTERAUTH_SECRET_KEY_HERE**
GOOGLE_CLIENT_ID=**YOUR_GOOGLE_CLIENT_ID_HERE**
GOOGLE_CLIENT_SECRET=**YOUR_GOOGLE_CLIENT_SECRET_HERE**
NEXT_PUBLIC_IMGBB_API_KEY=**YOUR_IMGBB_API_KEY_HERE**
NEXT_PUBLIC_BACKEND_API_URL=http://localhost:8000
# Install frontend modules and run the client server
npm install
npm run dev
=========================================================================
# STEP 2: SET UP BACKEND SERVER ENVIRONMENT
=========================================================================
git clone https://github.com/hridoy-web/ReTech-Backend.git
cd ReTech-Backend
# --- Create Backend Environment File (.env) ---
PORT=8000
MONGO_URI=**YOUR_MONGODB_URI_HERE**
# Install backend dependencies and launch the API gateway
npm install
npm run dev


