A modern full-stack e-commerce website for PC components and tech accessories, inspired by Scorptec. Built with React + Vite on the frontend and Node.js/Express on the backend.
- 🔝 Sticky responsive navbar with mobile hamburger menu
- 🎯 Hero banner with promotional content and CTA
- 🗂️ Product category browsing (PC Cases, CPUs, GPUs, and more)
- 🛍️ Dynamic featured products grid fetched from REST API
- ❤️ Wishlist button & Quick Add on every product card
- 📰 Newsletter signup section
- 🔒 Trust bar (Payments, Delivery, Returns, Security)
- 🦶 Full footer with A–Z browse and site navigation
- 📱 Fully responsive across all screen sizes
- ⏳ Loading skeleton while products are being fetched
- 🚫 Empty state UI when no products are returned
| Layer | Technology |
|---|---|
| Frontend | React 18, Vite, Tailwind CSS |
| Backend | Node.js, Express |
| HTTP Client | Axios |
| Styling | Tailwind CSS v3 |
nextech/
├── client/ # React + Vite frontend
│ ├── public/
│ ├── src/
│ │ ├── components/
│ │ ├── Navbar.jsx
│ │ ├── Hero.jsx
│ │ ├── FeaturedProducts.jsx
│ │ ├── Product.jsx
│ │ ├── Footer.jsx
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │
│ │ ├── App.jsx
│ │ ├── main.jsx
│ │ └── index.css
│ ├── index.html
│ ├── vite.config.js
│ ├── tailwind.config.js
│ └── postcss.config.js
│
└── server/ # Node.js + Express backend
├── routes/
├── models/
├── controllers/
└── index.js
Make sure you have the following installed:
- Node.js v18+
- npm or yarn
git clone https://github.com/your-username/nextech.git
cd nextechcd server
npm install
npm startThe backend will run on http://localhost:4000
cd client
npm install
npm run devThe frontend will run on http://localhost:5173
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/getProducts | Fetch all products |
| Component | Description |
|---|---|
Navbar |
Sticky top nav with links, search, mobile menu |
Hero |
Full-width banner with sale info and CTA |
FeaturedProducts |
API-fetched product grid with loading skeleton |
Product |
Individual product card with wishlist & quick add |
Footer |
Dark footer with A–Z nav and link columns |
Create a .env file in the server/ directory:
PORT=4000
MONGO_URI=your_mongodb_connection_stringContributions are welcome! Feel free to open an issue or submit a pull request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License.
Malan Chandima
- GitHub: @malan-x9
Built with ❤️ using React + Vite & Tailwind CSS
