Giter Site home page Giter Site logo

studtj1991 / ai-content Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ash1eygrace/ai-content

0.0 0.0 0.0 31.96 MB

A React app that uses OpenAI's Generative Pre-trained Transformer 3 (GPT-3) autoregressive deep learning language model to generate human-like text.

JavaScript 78.09% CSS 14.50% HTML 7.40%

ai-content's Introduction

ai-content

Purpose of this App πŸ€–

To generate website, product copy, and brianstorm ideas with OpenAI's Generative Pre-trained Transformer 3 (GPT-3) an autoregressive language model that uses deep learning to produce human-like text.

theme croped

Getting Started πŸ› οΈ:

Tools Used:

Development:

This repository is set up to run on a VPS with an express backend, to run it locally do the following:

  1. Fork and clone this repo
  2. In Terminal open the directory ai-content
  3. Check that Node.js is installed via Terminal by typingΒ node -vΒ if you don’t see a versionΒ Install Node.js
  4. In the ai-content directory typeΒ npm installΒ to install any missing dependences.
  5. cd into the ai-content/api directory and typeΒ npm installΒ to install any missing dependences.
  6. Obtain yourΒ OpenAI API keyΒ via Log In > Personal > API keys > Create and Copy your Secret Key.
  7. In the ai-content/api directory add aΒ .envΒ file with an API key variable and the port for the backend:
   API_KEY=abc123yourapikey
   PORT=6001
  1. In Terminal cd into the ai-content/api directory and npm start
  2. finally, in Terminal cd in the ai-content directory and npm start

Structure:

ai-content
β”œβ”€β”€ api
β”‚   β”œβ”€β”€ node_modules
β”‚   β”œβ”€β”€ .env // Your API key goes here
β”‚   β”œβ”€β”€ index.js
β”‚   β”œβ”€β”€ package-lock.json
β”‚   └── package.json
β”œβ”€β”€ node_modules
β”œβ”€β”€ public
β”‚   β”œβ”€β”€ _redirects
β”‚   β”œβ”€β”€ favicon.ico
β”‚   β”œβ”€β”€ index.html
β”‚   └── manifest.json
β”œβ”€β”€ src
β”‚   β”œβ”€β”€ assets
β”‚   β”‚   └── images
β”‚   β”‚       └── logo.png
β”‚   β”œβ”€β”€ components
β”‚   β”‚   β”œβ”€β”€ api
β”‚   β”‚   β”‚   └── OpenAIAPI.js
β”‚   β”‚   β”œβ”€β”€ common
β”‚   β”‚   β”‚   β”œβ”€β”€ CopyToClipboard.js
β”‚   β”‚   β”‚   β”œβ”€β”€ LoadingSpinner.js
β”‚   β”‚   β”‚   β”œβ”€β”€ ThemeContext.js
β”‚   β”‚   β”‚   β”œβ”€β”€ ThemeToggle.js
β”‚   β”‚   β”‚   β”œβ”€β”€ LoadingSpinner.js
β”‚   β”‚   β”‚   └── Navigation.js
β”‚   β”‚   β”œβ”€β”€ generators
β”‚   β”‚   β”‚   β”œβ”€β”€ Generator.js
β”‚   β”‚   β”‚   β”œβ”€β”€ GeneratorCard.js 
β”‚   β”‚   β”‚   └── Generators.js
β”‚   β”‚   └── pages
β”‚   β”‚       └── Home.js
β”‚   β”œβ”€β”€ data
β”‚   β”‚   └── generatorList.js
β”‚   β”œβ”€β”€ hooks
β”‚   β”‚   └── useTypingEffect.js
β”‚   β”œβ”€β”€ App.css
β”‚   β”œβ”€β”€ App.js
β”‚   β”œβ”€β”€ index.css
β”‚   └── index.js
β”œβ”€β”€ .gitignore
β”œβ”€β”€ package.json
└── README.md

Current app features ✨

  • Navigation
  • Theme toggle for dark and light modes
  • Blog Post Ideas Generator
  • Product Description Generator
  • Company Bio Generator
  • SEO Blog Intro Paragraph Generator
  • LinkedIn Job Description Generator
  • TL;DR Text SummarizerGenerator
overview-of-app.1.1.mov

Examples:

Themes ✨

  • The app features two themes: a dark theme and a light theme for your preference.
  • Switching between themes is easy - just click the toggle button in the navigation bar. The moon ☽ icon indicates the dark theme, while the sun β˜€οΈ icon represents the light theme.
  • Your chosen theme will be saved in local storage, so you won't have to select it again as you navigate around the app.
Theme.toggle.1.mov

Generators β™Ί

  • The app dynamically displays each generator from an array of data via routes, making it easy to add new generators in one data file.
  • Each generator prompts the user for input via a form, based on the generator.
  • When the user submits their prompt, their prompt is concatenated with a predefined context string for the generator that's defined in the data to produce the best response from GPT.
  • While waiting for a response, state changes to show a Loading spinner, and the card header title indicates that the app is thinking.
  • Once OpenAI sends a response, state changes to show a new card header title, the body of the response from OpenAI, and a copy to clipboard button for easy copying.
  • The copy to clipboard button changes to a "copied" state and back to the clipboard copy button after a few seconds, making it easy to copy the response multiple times if necessary.

Product Description Generator πŸ›’

Product.Description.mov

Company Bio Generator πŸ›’

Company.Bio.mov

ai-content's People

Contributors

ash1eygrace avatar villanovachile avatar mr-g-d 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.