This is an interview question generator app adapted from the OpenAI API quickstart tutorial. It uses the Next.js framework with React.I've added in storage using Google firestore so that the API is not queried for every new user submission to keep costs low and improve speed.
Live site: www.generateinterviewquestions.com
If you like what you see and want to re-create /improve this site, feel free to clone/fork this repo and follow the instructions below to get up and running ! Issues/Pull requests are welcome.
The site could quiet readily be adapted for other specific use cases by changing the API prompt in the generate.js file.
-
If you don’t have Node.js installed, install it from here
-
Clone this repository
-
Navigate into the project directory
$ cd open-ai-interview-question-generator
-
Install the requirements
$ npm install
-
Make a copy of the example environment variables file
$ cp .env.example .env
-
Add your API key to the newly created
.env
file(eg.use nano or edit in an IDE) -
Create a Firestore project and a firebase database and copy the credentials from the Firebase console into const firebaseConfig in index.js(https://firebase.google.com/docs/firestore/quickstart)(see "AddFirebase to your web app" from the project dashboard). The firebase collection should be called "questions" and the document should be called "questions" also.There are three fields in the firebase document questions: "date" type = timestamp, "jobTitle" type = string and "questions" type = array.
-
Run the app
$ npm run dev
You should now be able to access the app at http://localhost:3000