This repository contains a full-stack web application featuring:
- π§ Backend: Node.js, Express, MongoDB (Mongoose)
- π» Frontend: React, Vite, Tailwind CSS
- π‘οΈ Authentication: JWT with admin access
- βοΈ Cloudinary: For image uploads
Visit the Admin Panel here:
π https://marketingcompany-eosin.vercel.app/admin
Login credentials:
- π§ Email:
admin@example.com - π Password:
Admin@123
- βοΈ React β UI library
- β‘ Vite β Fast development server and build tool
- π¨ Tailwind CSS β Utility-first styling framework
- π§ React Router β Client-side routing
- π Axios β For making HTTP requests
- π React Hook Form β Form management and validation
- β³ React Spinners β Loading indicators
- π Admin Login Page β Includes form validation and loading state
- π§ Responsive Navbar β Navigation component across pages
- π Home Page Layout β Basic placeholder for home/dashboard content
- π API Integration β Connects with backend for authentication and data
- π¨ Tailwind CSS β For clean, responsive, and modern UI
src/App.jsxβ Main application file with routingsrc/components/Login.jsxβ Admin login form with validationsrc/components/navbar.jsxβ Navigation bar componentsrc/Home.jsxβ Home page layout
-
Install dependencies
cd frontend npm install
- Node.js & Express β API server
- MongoDB & Mongoose β Database and ODM
- JWT β Authentication (admin)
- bcryptjs β Password hashing
- Cloudinary β Image hosting
- dotenv β Environment config
- CORS & cookie-parser β Middleware
- π Admin Authentication: JWT-based with middleware verification
- π CRUD APIs: Projects, Clients, Subscribers, Contact Forms
- π‘οΈ Admin Middleware: Secures protected routes
- π§ Environment Management: Uses
.envfor secrets