Skip to content

ink4art/Website-Page-Generator-OpenAI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Single Page Website Generator

This project demonstrates the generation and saving of a single-page website using HTML, CSS, JavaScript, and the OpenAI API client.

Overview

The project uses Node.js to interact with the OpenAI API. It dynamically generates HTML content that includes internal CSS styles and JavaScript functionality based on prompts sent to the API.

Features

  • HTML Generation: Utilizes the OpenAI API to generate HTML code.
  • CSS Integration: Includes CSS styles within <style> tags in the generated HTML.
  • JavaScript Embedding: Embeds JavaScript functionality within <script> tags in the generated HTML.
  • File Saving: Saves the generated HTML content to a .html file locally.

Usage

  1. Customize the prompts and structure in the index.js file to tailor the generated HTML, CSS, and JavaScript as needed.
  2. Ensure your OpenAI API key is set in the environment variables or directly in the code (avoid committing sensitive information to version control).
  3. Run the application to generate the HTML file containing the dynamically created single-page website.

Resources


Notes:

  • Customize the project further by adjusting the prompts and responses to fit specific project requirements.
  • For security reasons, avoid exposing your API key in public repositories or environments.
  • Contributions and feedback are welcome. Please refer to the project's CONTRIBUTING.md for guidelines.

This short README.md provides a high-level overview of the project's purpose, features, usage guidelines, and additional resources for further exploration. Adjust the content to include any specific implementation details or additional project information as necessary.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 60.7%
  • JavaScript 39.3%