This project is a full-stack web application with a React frontend (Vite + Tailwind CSS) and a Node.js/Express backend. It provides features such as authentication, loan applications, admin management, and more.
- Node.js (v16 or higher recommended)
- npm (comes with Node.js)
- (Optional) Vercel CLI for deployment
TavPe/
├── client/ # Frontend (React + Vite + Tailwind CSS)
└── server/ # Backend (Node.js + Express + MongoDB)
git clone https://github.com/ManpreetSingh18/TavPe.git
cd TavPecd client
npm installcd ../server
npm install- Copy
.envor.env.productionand update API URLs as needed.
- Set up your MongoDB URI and any secret keys required.
- Example:
MONGODB_URI=your_mongodb_connection_string JWT_SECRET=your_jwt_secret PORT=5000
cd server
npm start- The backend will run on
http://localhost:5000by default.
cd client
npm run dev- The frontend will run on
http://localhost:5173by default (Vite).
- User authentication (login/register/phone sign-in)
- Loan application forms (Personal, Home, Car, Business, Credit Card, Health Insurance)
- Admin dashboard (manage users, contacts, services)
- FAQ, testimonials, analytics, and more
- Responsive design with Tailwind CSS
- The frontend is ready for deployment on Vercel. Use the Vercel dashboard or CLI.
- Example:
cd client vercel
- Deploy the backend to any Node.js hosting (e.g., Render, Heroku, Vercel Serverless, etc.)
npm run dev– Start development servernpm run build– Build for productionnpm run preview– Preview production build
npm start– Start server
src/components/– Reusable UI componentssrc/pages/– Main pages/routessrc/store/– State management (auth)src/utils/– Utility functionspublic/– Static assets
controllers/– Route controllersmiddleware/– Express middlewaremodels/– Mongoose modelsrouter/– Express routersutils/– Utility functions (e.g., DB connection)validators/– Input validation
This project is licensed under the MIT License.
For questions or support, please open an issue or contact the maintainer.