A full-stack IP lookup tool that combines a secured backend proxy for ipstack with a polished React frontend. Use this document as the entry point for local setup, deployment guidance, and documentation links.
WhatsMyIp/
├── backend/ # Express proxy to ipstack
└── frontend/ # React + Tailwind UI
backend/README.md– Setup instructions, environment configuration, and available proxy endpoints.frontend/README.md– UI architecture, data flow, theming, and development workflow.
- Install dependencies in both workspaces:
cd backend && npm install cd ../frontend && npm install
- Configure ipstack in
backend/.envusing the sample file for guidance. - Run the backend (default port: 3001):
npm run dev
- Run the frontend (default port: 5173) in a separate terminal:
npm run dev
- Visit the frontend URL. Requests to
/api/lookupwill be proxied to the backend.
Plan requirement: Both services rely on ipstack's Connection and Time Zone modules, which are included starting with the Starter plan.
- Ensure the backend is deployed with the required ipstack API key and appropriate security controls; the frontend never exposes the key directly.
- Configure the frontend's
VITE_LOOKUP_PATHat build time if your proxy uses a non-default route. - Consider deploying both services behind a reverse proxy that routes
/apito the backend and static assets to the frontend build output.
- ipstack docs: https://ipstack.com/documentation
- Tailwind CSS: https://tailwindcss.com/docs
- Vite: https://vitejs.dev/guide/