Git Product home page Git Product logo

interview-full-stack's Introduction

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 [email protected]/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

interview-full-stack's People

Contributors

nicobytes avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.