This project was completed for the Shopify Frontend Developer Internship.
Specs for this project can be found here.
The overall goal of this challenge was to utilize the GPT-3 API created by OpenAI to create an application that displays responses from an AI server.
The user can type instructions for an AI machine into a text input field and click a submit button to get a response from the AI. Responses are shown below the form in order of newest to oldest. An extra feature was added to allow the user to choose which AI machine they would like to use from a dropdown menu.
You can visit the deployed site here.
To install the project:
- Clone this repo to your local machine.
- Run
npm install
to install the dependencies. - Sign up for OpenAI: https://beta.openai.com/signup.
- Visit https://beta.openai.com/account/api-keys to get your secret API key.
- Create a new file in the root of this repository called
.env
. - Add
.env
to the.gitignore
file. - Add
REACT_APP_API_KEY={your api key}
to the.env
file. - Run
npm start
to run the application in your browser atlocalhost:3000
. - To run Cypress tests, run
npm run cypress
.
- React
- JavaScript
- CSS
- Cypress