Skip to content

Acquia 48Create 2024 AI Hackathon Project

Notifications You must be signed in to change notification settings

TravisCarden/ai-hackathon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drupal Module Test Generator - an Acquia 48Create 2024 AI Hackathon Project

The Drupal Module Test Generator is a Python application designed to automate the creation of comprehensive test cases for Drupal modules based on their routing files. It utilizes the Bedrock service from AWS for the Claude Sonnet model, Streamlit for the user interface, and LangChain for natural language processing.

Usage

  1. Clone the repository to your local machine:

    git clone https://github.com/TravisCarden/ai-hackathon.git
  2. Install the required dependencies using pip:

    pip install -r requirements.txt
  3. Run source assume-role.sh, then enter your MFA when asked. This assumes you have CloudServicesDev and AWS-Users AWS accounts set up for AWS CLI locally.

  4. Run the Streamlit app:

    streamlit run app/main.py
  5. Access the Streamlit app in your browser and provide the routing file data as input. The app will generate PHP test cases based on the provided data.

Development

Once you've followed the steps to run the application, you'll be ready to start developing it further. Additionally, for those already utilizing Docker and Visual Studio Code, we've set up a devcontainer to streamline the setup process. Simply ensure you have the Dev Containers extension installed. Then, open your ai-hackathon directory in VSCode, and it should prompt you to use the development container automatically.

Helpful commands

aws bedrock list-foundation-models --region=us-west-2 --by-provider anthropic --query "modelSummaries[*].modelId"
aws bedrock list-foundation-models --region=us-west-2 --by-provider amazon --query "modelSummaries[*].modelId"

Further experiments

About

Acquia 48Create 2024 AI Hackathon Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published