nicobytes / interview-full-stack

AI Interview Simulator is an web application designed to improve your interview preparation.

Home Page:https://interview.nicobytes.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

capture

AI Interview Simulator

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.

πŸš€ Services

🧱 Stack

  • Frontend
  • Backend:
  • 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

πŸš€ Quickstart

1. Fork and Clone repo

Fork the repo to your Github account, then run the following command to clone the repo:

git clone git@github.com/nicobytes/interview-cloudflare-ai

2. Install dependencies

cd apps/website
npm i

cd apps/api
npm i

3. Run app locally

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

πŸš€ Backend

The backend is built with HonoJS and Cloudfare Workers, a platform for building serverless applications that run on Cloudflare's global network.

capture

Folder structure

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

πŸš€ Frontend

The frontend is built with Angular, a platform and framework for building web applications using HTML, CSS and TypeScript.

Responsive design

capture capture capture

Using Angular Signals

The application uses Angular signals like a reactive pattern to communicate between components, services, and directives.

Folder structure

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

πŸš€ Deployment

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.

capture

About

AI Interview Simulator is an web application designed to improve your interview preparation.

https://interview.nicobytes.com/


Languages

Language:TypeScript 77.2%Language:HTML 21.4%Language:SCSS 0.7%Language:JavaScript 0.7%