AI Interview Simulator is an web application designed to improve your interview preparation. Using AI technology, it analyzes your answers and provides constructive feedback on how to improve. Using your device's camera and microphone, this tool provides a comprehensive, real-time assessment to help you excel in your next interview.
- Backend: https://interview-api.nicobytes.com/
- Frontend: https://interview.nicobytes.com/
- Frontend
- Framework: Angular
- Styling: Tailwind CSS
- Headless component primitives: Angular CDK
- Backend:
- API: HonoJS
- LangChainJS: LangChainJS
- Infrastructure:
- Cloudflare Pages
- Clodflare Workers
- Workers AI Models
- @cf/openai/whisper
- @cf/meta/llama-2-7b-chat-fp16
- openai-tts
- Storage: R2
- Database: D1 to chat memory
Fork the repo to your Github account, then run the following command to clone the repo:
git clone [email protected]/nicobytes/interview-cloudflare-ai
cd apps/website
npm i
cd apps/api
npm i
cd apps/website
ng serve
# check the app in http://localhost:4200
cd apps/api
npm run dev:remote
# check the app in http://localhost:3100/docs
The backend is built with HonoJS and Cloudfare Workers, a platform for building serverless applications that run on Cloudflare's global network.
The backend app is organized in the following folder structure:
.src/
โโโ bindings.ts
โโโ db
โย ย โโโ schema.ts
โโโ dtos
โย ย โโโ feedback.dto.ts
โย ย โโโ message.dto.ts
โย ย โโโ simulation.dto.ts
โโโ index.ts
โโโ middlewares
โย ย โโโ db.middleware.ts
โโโ routes
โย ย โโโ createFeedback.ts
โย ย โโโ createQuestion.ts
โย ย โโโ createSimulation.ts
โย ย โโโ createTranscript.ts
โโโ services
โย ย โโโ llm.service.ts
โย ย โโโ openai.service.ts
โย ย โโโ simulation.service.ts
โย ย โโโ whisper.service.ts
โโโ types.ts
The frontend is built with Angular, a platform and framework for building web applications using HTML, CSS and TypeScript.
The application uses Angular signals like a reactive pattern to communicate between components, services, and directives.
The frontend app is organized in the following folder structure:
.
โโโ app
โย ย โโโ app.component.ts
โย ย โโโ app.config.ts
โย ย โโโ app.routes.ts
โย ย โโโ components
โย ย โย ย โโโ header
โย ย โย ย โย ย โโโ header.component.html
โย ย โย ย โย ย โโโ header.component.ts
โย ย โย ย โโโ modal-recording
โย ย โย ย โโโ modal-recording.component.html
โย ย โย ย โโโ modal-recording.component.ts
โย ย โโโ models
โย ย โย ย โโโ message.model.ts
โย ย โโโ pages
โย ย โย ย โโโ create
โย ย โย ย โย ย โโโ create.component.html
โย ย โย ย โย ย โโโ create.component.ts
โย ย โย ย โโโ home
โย ย โย ย โย ย โโโ home.component.html
โย ย โย ย โย ย โโโ home.component.ts
โย ย โย ย โโโ simulator
โย ย โย ย โโโ simulator.component.html
โย ย โย ย โโโ simulator.component.ts
โย ย โโโ services
โย ย โโโ api.service.ts
โโโ assets
โย ย โโโ images
โย ย โโโ background.png
โย ย โโโ interview.jpg
โโโ environments
โย ย โโโ environment.development.ts
โย ย โโโ environment.ts
โโโ favicon.ico
โโโ index.html
โโโ main.ts
โโโ styles.scss
This project was structured as a monorepo, with the frontend and backend in the same repository, and with Github actions to detect changes in the code and deploy the app to the cloud. As part of CI/CD, the project has a linter and build step before deploying the app. The project has automatic deployment to Cloudflare Workers for the API, the frontend in Cloudflare pages.