This project contains both a frontend (Angular) and backend (Node.js/Express) for performing Whois lookups.
- Node.js (v16 or later recommended)
- npm (comes with Node.js)
- Angular CLI (for frontend):
npm install -g @angular/cli
- Open a terminal and navigate to the
backenddirectory:cd backend - Install dependencies:
npm install - Create a
.envfile in thebackenddirectory with your Whois API key:WHOIS_API_KEY=your_whoisxmlapi_key_here
- Start the backend server:
The backend will run at
node index.jshttp://localhost:5000/by default.
- Open a new terminal and navigate to the
frontenddirectory:cd frontend - Install dependencies:
npm install - Start the Angular development server:
The frontend will run at
ng servehttp://localhost:4200/by default.
- Open your browser and go to
http://localhost:4200/. - Enter a domain name (e.g.,
example.com) and select the type of information you want to look up. - Click the Lookup button to see the results.
- The frontend expects the backend to be running at
http://localhost:5000/. - This Whois API key has a maximum of 500 free requests per day.