- Abstract
- Technologies
- Code Architecture
- Illustrations
- Install + Setup
- Contributors
- Wins
- Challenges + Improvements
- Project Specs
The goal for this challenge was to utilize an Artifical Intelligence API to build an App in React. The result is AI FUN, an app that allow users to send a prompt and receive a response in return. Additionally users can delete a response if they don't like it. Responses returned are displayed with the original prompt and are returned from most recently requested to oldest request.
- Javascript
- React
- React Hooks
- CSS
- VScode
- GPT-3 API by OpenAI
- Cypress
App User Tutorial:
- Visit the OpenAI website here
- Sign-up for a free account
- After logging into your account, request a key here
- In the app's repo root, create a .env file and then add REACT_APP_APIKEY=$ ASSIGNED-API-KEY
- Add the .env file to the .gitignore file by adding this line # api key and the .env file below it
- Clone this repo to your machine.
cd
into the directoryai_app
- Run
npm install
- Run
npm start
- Add the local host into your browser
- To test with Cypress Testing, run
npm run cypress
- Writing an app in React Hooks for the first time.
- Utilizing an API with a secure key, and creating a smooth user flow.
- App CSS Styling.
- Good personal workflow.
- Troubleshooting with this API was tricky at times.
- The deployed link does not always return a response correctly.
- Adding a favoriting feature.
- Add local storage to ensure a user's responses would be saved upon reloading the page.
- Add a searching feature.
- The project spec for this challenge be found here