{"id":19776936,"url":"https://github.com/madeindra/mock-interview","last_synced_at":"2026-04-15T13:32:40.829Z","repository":{"id":255501821,"uuid":"849952957","full_name":"madeindra/mock-interview","owner":"madeindra","description":"Interview AI using ChatGPT API ","archived":false,"fork":false,"pushed_at":"2024-09-14T04:20:04.000Z","size":8395,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T12:13:58.524Z","etag":null,"topics":["ai","go","interview","react","typescript"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madeindra.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-30T15:25:43.000Z","updated_at":"2024-11-07T08:25:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"eaa5c9bd-11cb-4c6f-93c3-6f7f38b6cd98","html_url":"https://github.com/madeindra/mock-interview","commit_stats":null,"previous_names":["madeindra/mock-interview"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/madeindra/mock-interview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeindra%2Fmock-interview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeindra%2Fmock-interview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeindra%2Fmock-interview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeindra%2Fmock-interview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madeindra","download_url":"https://codeload.github.com/madeindra/mock-interview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madeindra%2Fmock-interview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278267142,"owners_count":25958787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","go","interview","react","typescript"],"created_at":"2024-11-12T05:22:28.481Z","updated_at":"2025-10-04T05:24:32.203Z","avatar_url":"https://github.com/madeindra.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI-Powered Mock Interview Tool\n\nThis project is a mock interviewing tool built with AI. It consists of a Go server and a React TypeScript client with Vite.\n\n![preview](./preview.gif)\n\n## Server\n\nThe server is built with Go 1.22 and is located in the `server` directory. It requires the following environment variables:\n\n- `OPENAI_API_KEY`: Your OpenAI API key\n- `ELEVENLAB_API_KEY`: Your ElevenLab API key for alternative speech engine\n- `DB_PATH`: Path to SQLite database\n\nThese configurations are optional:\n- `PORT`: The port number for the server to run\n- `CORS_ALLOWED_ORIGINS`: Allowed origin to call the APIs\n- `CORS_ALLOWED_METHODS`: Allowed methods of the APIs call\n- `CORS_ALLOWED_HEADERS`: Allowed headers of the APIs call\n\n## Client\n\nThe client is built using React TypeScript with Vite and Node.js 20. It is located in the `client` directory. It has one optional environment variable:\n\n- `VITE_BACKEND_URL`: URL of the backend server\n\n## Running with Docker\n\nTo run the project using Docker and docker-compose, follow these steps:\n\n1. Make sure you have Docker and docker-compose installed on your system.\n\n2. Clone the repository and navigate to the project root directory.\n\n3. Create a `.env` file in the root directory with the following content:\n\n   ```\n   OPENAI_API_KEY=your_openai_api_key_here\n   ELEVENLAB_API_KEY=your_openai_api_key_here\n   DB_PATH=your_database_path_here\n   ```\n\n4. Set the `VITE_BACKEND_URL` in client Dockerfile accordingly if you change the server's port mapping\n\n5. Run the following command to build and start the containers:\n\n   ```\n   docker-compose up --build\n   ```\n\n   This will start the MongoDB database, the Go server, and the React client.\n\n6. Access the client application by opening a web browser and navigating to `http://localhost:3000`.\n\n7. To stop the containers, use the following command:\n\n   ```\n   docker-compose down\n   ```\n\n### Notes\n\nWhen running the server using the provided `docker-compose.yml`, the `DB_PATH` is optional.\n\nIf there the server's port is changed or if client and server are deployed in separate domain, please update the `BACKEND_URL` arguments on the client's Dockerfile.\n\n## Development\n\nFor development purposes, you can run the server and client separately:\n\n### Server\n\n1. Navigate to the `server` directory.\n2. Run `go run main.go` to start the server.\n\n### Client\n\n1. Navigate to the `client` directory.\n2. Run `npm install` to install dependencies.\n3. Run `npm run dev` to start the development server.\n\nRemember to set the required environment variables when running the applications outside of Docker.\n\n## Project Structure\n\n- `server`: Contains the Go server code\n- `client`: Contains the React TypeScript client code\n- `docker-compose.yml`: Defines the multi-container Docker application\n- `Dockerfile` in each directory: Defines how to build the Docker images for server and client","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadeindra%2Fmock-interview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadeindra%2Fmock-interview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadeindra%2Fmock-interview/lists"}