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.
-
Clone the repository to your local machine:
git clone https://github.com/TravisCarden/ai-hackathon.git
-
Install the required dependencies using pip:
pip install -r requirements.txt
-
Run
source assume-role.sh
, then enter your MFA when asked. This assumes you haveCloudServicesDev
andAWS-Users
AWS accounts set up for AWS CLI locally. -
Run the Streamlit app:
streamlit run app/main.py
-
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.
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.
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"