The web interface for the AI Terraform Module Generator project. This frontend service provides a user-friendly interface for managing Terraform modules and interacting with the AI generation capabilities.
- User authentication and role-based access control
- Module repository management
- AI module generation interface
- Terraform Registry Protocol compatibility
- Module version management
- Repository integration with GitHub
- Node.js 18+
- PostgreSQL 14+
- Docker and Docker Compose
- Clone the repository:
git clone https://github.com/HappyPathway/ai-terraform-module-generator-frontend.git
- Create and configure environment variables:
cp .env.example .env
# Edit .env with your configuration
- Start the development environment:
docker compose up -d
- Access the application at http://localhost:5000
DB_HOST
: PostgreSQL hostDB_PORT
: PostgreSQL portDB_NAME
: Database nameDB_USER
: Database userDB_PASSWORD
: Database passwordSECRET_KEY
: Flask secret keyBACKEND_URL
: URL of the backend serviceADMIN_EMAIL
: Email for the initial admin user
- Install dependencies:
pip install -r requirements.txt
- Run database migrations:
flask db upgrade
- Start the development server:
flask run
pytest
├── app/ # Application package
│ ├── __init__.py # Flask app initialization
│ ├── models/ # Database models
│ ├── routes/ # API routes
│ ├── templates/ # Jinja2 templates
│ └── static/ # Static assets
├── migrations/ # Database migrations
├── tests/ # Test suite
└── docker/ # Docker configuration
The frontend service implements the Terraform Registry Protocol for module discovery and download. See API Documentation for details.
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to your branch
- Create a pull request
MIT License - see LICENSE for details