Giter VIP home page Giter VIP logo

photovoltai-artikelator's Introduction

ContentGen by PromptChainer

ContentGen is a React application built using Next.js that uses PromptChainer's API to generate an article and more content based on user input. This powerful tool is perfect for generating articles using AI and you can create it in a matter of minutes!

Read more in our Blog Post.

๐ŸŒŸ Features

  • React.js & Next.js application.
  • Integration with the PromptChain API.
  • Dynamic rendering of the generated output.
  • Adaptive textarea input for keywords.
  • Loading state with randomized sentences.

๐Ÿš€ Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • Node.js installed (>= 14.x)
  • NPM or Yarn as package manager
  • An API key from PromptChain - in this Beta version it's on us :) Don't worry about it

Installation

  1. Clone the repository:
git clone https://github.com/PromptChainer/showcase-article-gen

Install NPM packages:

npm install

Or if you are using Yarn:

yarn

Copy the .env.example file and create a .env file in the root of the project. Add your PromptChain API key to the .env file:

NEXT_PUBLIC_API_KEY=your_api_key_here

If you want to add Google Analytics, add your measurment ID to the .env file:

NEXT_PUBLIC_GA_TRACKING_ID=your_google_analytics_measurment_id_here

Start the development server:

npm run dev

Or if you are using Yarn:

yarn dev

Open http://localhost:3000 with your browser to see the result.

๐Ÿ“š Usage

After you've started the application, you will find four text inputs:

  1. Subject: The main topic of the article.
  2. Keywords: Important words that should be included in the article.
  3. Target Audience: The primary readers or viewers that the article will be targeting.
  4. Personal Notes: Any additional instructions or guidelines for the content.

After filling in the desired fields, click on the 'Generate' button and the marvelous content will be created and displayed on the right side of the application.

๐Ÿ”– Components

The React components written:

  • Textarea: This is a dynamic textarea component. It resizes based on input, handles placeholder, value, onChange events, and provides optional rows and columns properties.

๐Ÿ’ผ Contributing

Pull requests, suggestions and improvemnts are welcome!

๐Ÿ“ License

Distributed under the MIT License. See LICENSE for more information.

๐Ÿ“ซ Contact

Email: [email protected]

photovoltai-artikelator's People

Contributors

orit-veiner avatar stoyan-koychev avatar dvh1990 avatar dbpiggyy avatar

Stargazers

Yazan Agha-Schrader 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.