Skip to content

An auto GPT project that takes a user prompt to generate a full stack application built with rust and openAI's API

Notifications You must be signed in to change notification settings

ffmcgee725/rust-auto-gpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto GPT Code Generator

An auto GPT project that takes a user prompt to generate a full stack application built with Rust and OpenAI's API.

Table of Contents

Introduction

This project leverages OpenAI's API to generate a full stack application based on a user prompt. The backend is built with Rust, and the project aims to provide a solid foundation for rapid full stack application development.

Features

  • Generates a backend in Rust
  • Interacts with OpenAI's GPT-4 model
  • Modular codebase for easy extension
  • CLI for user prompts and interaction

Prerequisites

Installation

  1. Clone the repository:
git clone https://github.com/jc992/rust-auto-gpt.git
cd rust-auto-gpt
  1. Copy .env.sample to .env and configure your OpenAI API key:
cp .env.sample .env

Edit the .env file to include your OpenAI API key and organization ID:

OPEN_AI_KEY=your_openai_api_key
OPEN_AI_ORG=your_openai_org_id

For more information on obtaining an API key, visit the OpenAI documentation.

Usage

To interact with the application, simply run it and follow the terminal prompts to specify the type of website you want to build. The application will use different agents to generate the necessary code.

The generated backend code can be found in src/templates/web_server/src/main.rs. The generated frontend code can be found in ``src/templates/web_app/src`.

Running Tests

You can run isolated tests on each existing agent. Be aware that running these tests will cost credits as they make queries to OpenAI's API.

To run the tests:

cargo test

Building for Production

To build a production/release version of the application:

cargo build --release

The optimized binary will be available in the target/release directory.

Contributing

We welcome contributions! Create pull requests with your suggested changes!

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

An auto GPT project that takes a user prompt to generate a full stack application built with rust and openAI's API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages