Skip to content

absi-india/AI-Interview

Repository files navigation

ABSI Technical Interview Portal

Local Next.js app for creating technical interviews, sharing candidate links, and testing camera-based interviews.

Local Start

Run the app:

npm run dev

Open local admin/login:

http://localhost:3000/login

Default local admin account:

Email: admin@example.com
Password: admin123

Ngrok Testing Checklist

Use ngrok when you want to test the app through an HTTPS public link. This is needed for candidate camera testing on another device.

1. Start the App

In terminal 1:

npm run dev

Wait until it shows the app is ready on:

http://localhost:3000

Leave this terminal running.

2. Start Ngrok

In terminal 2:

ngrok http 3000

Ngrok will show a line like:

Forwarding  https://abcd-1234.ngrok-free.app -> http://localhost:3000

Copy only this part:

https://abcd-1234.ngrok-free.app

Do not copy this part:

-> http://localhost:3000

Do not copy the ngrok web interface URL:

http://127.0.0.1:4040

3. Update .env

In .env, replace APP_DOMAIN with the copied ngrok HTTPS URL:

APP_DOMAIN="https://abcd-1234.ngrok-free.app"
AUTH_TRUST_HOST=true

Keep NEXTAUTH_URL unset or commented out for local/ngrok testing.

4. Restart the App

After changing .env, restart terminal 1:

Ctrl + C

Then:

npm run dev

Ngrok must stay running in terminal 2.

5. Open the Ngrok Login

Use:

https://abcd-1234.ngrok-free.app/login

You can also keep local login open at the same time:

http://localhost:3000/login

Localhost and ngrok use separate browser cookies, so you may need to log in separately in each tab.

6. Common Mistakes

  • If the browser searches Yahoo/Google, paste the URL into the browser address bar and press Enter.
  • If login works on localhost but not ngrok, confirm .env has the same ngrok URL currently shown in the ngrok terminal.
  • If ngrok is restarted, the free URL usually changes. Copy the new URL, update APP_DOMAIN, and restart npm run dev.
  • If you see ERR_NGROK_121, update ngrok and run ngrok version; it must be 3.20.0 or newer.
  • For this project, run ngrok http 3000, not ngrok http 80.

Gemini API

Get a free Gemini API key from:

https://aistudio.google.com/app/apikey

Put it in .env:

GEMINI_API_KEY="your-key-here"

Restart the app after changing .env.

About

AI-powered mock interview platform built with TypeScript, Gemini API, SQL, AWS & Vercel.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages