Giter Club home page Giter Club logo

codepenai's Introduction

CodepenAI Banner

CodepenAI

Welcome to CodepenAI, where the future of web development meets the power of artificial intelligence. Our platform offers a unique code editor experience that allows you to interact with AI in a conversational manner, making web development more intuitive and accessible than ever before.

Check out the live demo here.

Features

  • AI-Powered Code Generation: Describe what you want in plain text and let the AI generate the HTML, CSS, and JavaScript code for you.
  • Interactive Code Editor: Fine-tune the AI-generated code or write your own with our codemirror code editor.
  • Project Management: Save your projects and come back to them anytime. Edit and update as needed with ease.
  • Live Demo: Try out the editor with a live demo. Please note that there is no back-end, and data will reset upon page reload.

Installation

To run CodepenAI locally, follow these steps:

  1. Clone the repository:
git clone https://github.com/Connectslide121/codepenAI.git
  1. Navigate to the project directory:
cd codepenAI
  1. Install dependencies:
npm install
  1. Configure database:

Set up the connection string for the database you want to use. Back end is written to use a MySQL server.

  1. Start the development server:

This script will start back and front ends concurrently.

npm run dev

Available Scripts

In the project directory, you can run:

  • npm run dev: Runs the app in development mode.
  • npm run endpoints: Runs the server app in development mode.
  • npm start: Runs the client app in development mode.
  • npm run build: Builds the app for production to the build folder.
  • npm run predeploy: Runs the build script and deploys the app to GitHub Pages.
  • npm run deploy: Deploys the app to GitHub Pages.
  • npm test: Launches the test runner in interactive watch mode.
  • npm run eject: Removes the single build dependency from your project.

Code Structure

  • src/index.js - Entry point that renders App component
  • src/components/App.js - Main App component
  • src/components/ - Other React components
  • src/functions/ - Small utility/helper functions
  • src/APIs/ - API calling functions
  • src/style.css - Global styles

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project

  2. Create your Feature Branch

git checkout -b feature/AmazingFeature
  1. Commit your Changes
git commit -m 'Add some AmazingFeature'
  1. Push to the Branch
git push origin feature/AmazingFeature
  1. Open a Pull Request

Acknowledgements

OpenAI API

React-codemirror npm

License

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

Enjoy coding with AI at your fingertips!

codepenai's People

Contributors

connectslide121 avatar

Watchers

 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.