A simple web application to search for customer care contact information of popular e-commerce companies.
🌐 Live Demo: https://testing-project-psi-rust.vercel.app/
Testing-Project-/
├── api/
│ └── companies.js # Vercel serverless API function
├── data/
│ └── companies.json # Company data (JSON database)
├── public/ # Static files (served by Vercel)
│ ├── index.html # Home page with search
│ ├── companyList.html # Full company listing
│ └── contact.html # Contact page
├── Frontend/ # Original frontend (kept for reference)
├── server.js # Local development server
├── package.json # Project dependencies
├── vercel.json # Vercel deployment configuration
└── README.md
-
Install dependencies:
npm install
-
Run the development server:
npm run dev
-
Open in browser:
http://localhost:3000
# Install Vercel CLI globally
npm i -g vercel
# Login to Vercel
vercel login
# Deploy (from project directory)
vercel- Push your code to GitHub
- Go to vercel.com
- Click "New Project" → Import your repository
- Framework Preset: Other
- No build command needed
- Click "Deploy"
Vercel will automatically:
- Deploy the API serverless function at
/api/companies - Serve static files from
/public - Handle routing via
vercel.json
| Endpoint | Method | Description |
|---|---|---|
/api/companies |
GET | Returns list of all companies with contact info |
- 🔍 Search companies by name
- 📞 View customer care numbers
- 📧 Direct email links
- 🏢 Company logos
- 📱 Responsive design with Tailwind CSS
- ⚡ Fast serverless API
- Frontend: HTML, Tailwind CSS, Vanilla JavaScript
- Backend: Node.js, Express (local) / Vercel Serverless Functions
- Deployment: Vercel
- Data: JSON file database
- Data source:
data/companies.json - Serverless handler:
api/companies.js - Local dev server:
server.js(reuses serverless handler) - Static files:
public/folder