An early-stage project for role-focused mock interview practice, built with React, Vite, and Express.
Project status: The current frontend is a responsive, informational landing page. It demonstrates the product concept and navigation; interview sessions, AI-generated questions or feedback, accounts, and progress tracking are not implemented yet. The Express API currently provides a health-check endpoint only.
- What InterviewAI is
- What you can do today
- Get started
- How to use the current app
- Run and check the API
- Configuration
- Useful commands
- Project structure
- Troubleshooting
- Current limitations
InterviewAI is being developed as a text-first mock interview practice tool. The product concept is to let candidates focus on a target role and interview type, practice answering questions, and use feedback to guide their preparation.
The current site introduces that concept with sections about the practice experience, process, interview topics, career stages, and contact/get-started navigation. Its visual artwork is created with CSS; the current landing page does not require external image assets to display.
| Available in this version | Planned, not available yet |
|---|---|
| Browse the responsive landing page on desktop and mobile. | Create or sign in to an account. |
| Use the navigation links to jump to page sections. | Start or save a mock interview session. |
| Explore example topics such as JavaScript, React, backend, system design, problem solving, and behavioral interviews. | Generate interview questions or receive AI feedback. |
| Start the Express server and check its health endpoint. | View interview history or track progress. |
- Node.js:
20.19+or22.12+(required by the Vite version in this project). - npm: included with Node.js.
- A modern web browser.
Check your installed versions:
node --version
npm --versionIf you have not already cloned the repository:
git clone https://github.com/Sam78Svg/AiInterviewer.git
cd AiInterviewer
npm installInstall dependencies once from the repository root. The root scripts run the frontend in Client/ and the API in Server/.
From the repository root, run:
npm run devOpen the local address printed by Vite, normally http://localhost:5173. Keep this terminal open while using the development site. Stop the server with Ctrl+C.
The landing page does not currently call the API, but you can run it separately to check the backend scaffold. Open a second terminal in the repository root and run:
npm run serverThe API listens on port 5000 by default. Keep this terminal open too; stop it with Ctrl+C.
This version is a single-page product introduction, not an interview simulator. Use the header or scroll through the page:
| Navigation item | Page section |
|---|---|
| Work | Overview of the InterviewAI experience. |
| Process | A conceptual five-step interview-practice flow. |
| Capabilities | Example interview topics and skills. |
| Team | Information for candidates at different career stages. |
| Contact | A get-started callout and links back to topics. |
The header's Get started and Explore interview topics links take you to the topics section. On narrower screens, open the menu with its menu button; select a link to jump to that section. The footer provides section links and a Back to top link.
The process, feedback, and practice examples on the page explain the intended product experience. They do not start a live session or submit data.
With the API running, open http://localhost:5000/api/health in a browser or request it from a terminal:
curl http://localhost:5000/api/healthExpected response:
{
"success": true,
"message": "InterviewAI server is running"
}This is currently the only API route. The server uses Express, JSON request parsing, and CORS; database and AI integrations are not connected.
The server supports these environment variables:
| Variable | Default | Purpose |
|---|---|---|
PORT |
5000 |
Port on which the Express server listens. |
CLIENT_URL |
http://localhost:5173 |
Frontend origin allowed by the server's CORS configuration. |
For the default local setup, no configuration file or API credentials are required. To change PORT, create a .env file in the repository root:
PORT=5001Then start the API with npm run server and check http://localhost:5001/api/health. .env files are ignored by Git; do not commit secrets. If you host the frontend on a different origin, set CLIENT_URL in the server process environment to that exact origin before starting the API.
Run these at the repository root:
| Command | What it does |
|---|---|
npm install |
Installs project dependencies. |
npm run dev |
Starts the Vite frontend development server. |
npm run build |
Builds the frontend into Client/dist/. |
npm run preview |
Serves the production build locally for a quick check. |
npm run lint |
Runs ESLint on the frontend code. |
npm run server |
Starts the Express API. |
npm run server-test |
Starts the API with Nodemon, which restarts it when server files change. This is a watch-mode command, not an automated test suite. |
To check the frontend before sharing a change:
npm run lint
npm run buildInterviewAI/
├── Client/
│ ├── public/ # Static public assets
│ ├── src/
│ │ ├── App.jsx # Landing page sections and navigation behavior
│ │ ├── App.css # Landing page layout and component styling
│ │ ├── index.css # Global styles and typography
│ │ └── main.jsx # React application entry point
│ ├── index.html # Page metadata and HTML mount point
│ └── vite.config.js # Vite and React configuration
├── Server/
│ └── src/
│ ├── app.js # Express app, CORS, and /api/health route
│ └── server.js # Loads environment and starts the HTTP server
├── package.json # Root scripts and dependencies
└── package-lock.json # Locked dependency versions
Vite reports that my Node.js version is unsupported
Install Node.js 20.19 or later in the 20.x line, or 22.12 or later (including newer major versions). Then open a new terminal, check node --version, and run npm install again if needed.
The site or API says the port is already in use
Another process may already be using the default port. Stop that process, or use another PORT for the API. Vite prints its selected local URL when it starts; open that URL rather than assuming it used the default.
The browser cannot reach the API from a different frontend origin
The server allows http://localhost:5173 by default. Set CLIENT_URL in the API process environment to the frontend's origin, including the scheme and port, then restart the API. For example, an origin is http://localhost:3000 (not a full page path).
I expected an interview session, AI feedback, or a database
Those features are part of the planned product, not this current implementation. The interactive elements on the site are navigation links; the only backend endpoint currently available is /api/health.
- The frontend is a static React landing page; its content is not backed by a session flow.
- The server only exposes
GET /api/health. - Although Mongoose is listed as a dependency, the application does not currently connect to MongoDB.
- No AI provider, authentication, user data storage, or automated test suite is configured yet.
InterviewAI · Practice with purpose