Location: backend/
- Local setup
- Create
backend/.envfrom.env.exampleand set:MONGODB_URIto your MongoDB Atlas connection stringFRONTEND_URLtohttp://localhost:5173for local dev
- From
backend/run:
npm install
npm startServer runs at http://localhost:5000.
- API endpoints
- POST
/api/contactbody:{ name, email, phone, comment } - GET
/api/contact - DELETE
/api/contact/:id
- Deployment
- Render (free tier):
- New Web Service -> Connect repo
- Root directory:
backend - Build command:
npm install - Start command:
npm start - Environment variables:
MONGODB_URI,FRONTEND_URL(your Vercel URL)
- Configure
VITE_API_BASE_URLin/.env(Vercel Project Settings -> Environment Variables)- Example local:
VITE_API_BASE_URL=http://localhost:5000 - Example prod:
VITE_API_BASE_URL=https://<your-render-service>.onrender.com
- Example local:
Sportech is a car repairing and modification workshop.
We provide complete automotive care, from routine maintenance and repairs to building drift-ready cars with custom modifications.
- Responsive website built with modern web technologies
- Sections for Home, About, Work, Contact
- Smooth navigation with active section highlighting
- Gallery/Work section to showcase car builds & drift projects
- Contact form for customer inquiries
- Frontend: React + Vite + TailwindCSS
- Backend (optional if added): Node.js + Express.js
- Hosting: Vercel
sportech/
│── src/
│ ├── components/ # Reusable UI components
│ ├── pages/ # Pages (Home, About, Work, Contact)
│ ├── assets/ # Images, logos, icons
│ ├── App.jsx # Main App
│ └── index.css # Global styles
│
│── public/ # Static files
│── package.json # Dependencies
│── README.md # Project documentation