This repository contains a sample Flask web application that demonstrates integration with Daytona for managing development environments. The app also showcases AI-powered functionality using OpenAI API and a responsive interface built with Tailwind CSS.
-
Install Daytona:
Follow the Daytona installation guide to set up Daytona on your machine. -
Create the Workspace:
Use Daytona to clone and set up this sample repository:daytona create https://github.com/palsayantan007/Daytona-Pydantic-ai-App
-
Set Up Environment Variables:
Copy.env.example
to.env
and update it with your OpenAI API key:cp .env.example .env
Ensure the following variable is set:
OPENAI_API_KEY
: Your OpenAI API key.
-
Install Dependencies:
Inside the created workspace, install the required Python packages:pip install -r requirements.txt
-
Start the Application:
Launch the Flask application:python app.py
Your app should now be running at
http://localhost:8080
!
- AI-Powered Prompt Responses: Leverages OpenAI's API to process and respond to user prompts dynamically.
- Responsive Design: Built with Tailwind CSS for an intuitive, mobile-friendly UI.
- Environment Management: Uses Daytona to ensure a consistent and containerized development setup.
- Dynamic Configuration: Supports
.env
for managing API keys and configurations seamlessly.
This project is licensed under the MIT License. See the LICENSE
file for details.
- Daytona Documentation: https://github.com/daytonaio/daytona
- Daytona Samples Index: Daytona Samples Index File
- OpenAI API: OpenAI API Documentation
If you encounter any issues or have suggestions, feel free to contribute or open an issue. Once merged, submit the sample into the Daytona Samples Index to complete your integration!
Happy coding! 🚀