An AI-powered web application that helps users create meaningful and achievable New Year's resolutions. Using OpenAI's GPT-4, the app guides users through personalized questions to generate detailed, actionable resolution plans.
- Smart Question Flow: Dynamic, personalized questions that adapt based on user responses
- AI-Powered Insights: Leverages OpenAI's GPT-4 for intelligent resolution planning
- Personalized Action Plans: Detailed roadmaps with milestones and resources
- Location-Aware: Suggests local resources and activities based on user location
- Interactive UI: Modern, responsive design with smooth animations
- Resource Links: Direct links to tools, communities, and resources
- Python Flask
- OpenAI API (GPT-4)
- Flask-CORS
- Python-dotenv
- HTML5
- Tailwind CSS
- JavaScript
- Font Awesome
- Python 3.8+
- Node.js and npm
- OpenAI API key
-
Clone the Repository
git clone https://github.com/yourusername/resolutionpal.git cd resolutionpal -
Set Up Environment Variables
# Create .env file cp .env.example .env # Add your OpenAI API key to .env OPENAI_API_KEY=your_api_key_here
-
Install Dependencies
# Install Python dependencies pip install -r requirements.txt # Install Node dependencies npm install
-
Build CSS
npm run build:css
-
Run the Application
# Development mode with CSS watching npm run dev # Or run Flask only flask run
npm run devThis will start both the Flask server and Tailwind CSS watcher.
npm run buildGET /: Landing pageGET /start: Start resolution creationPOST /start_session: Initialize AI sessionPOST /get_next_question: Get next questionPOST /generate_resolution: Generate final resolution
Required environment variables:
OPENAI_API_KEY: Your OpenAI API keyFLASK_ENV: Development/ProductionFLASK_RUN_PORT: Default 5001
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI for GPT-4 API
- Flask team for the awesome framework
- Tailwind CSS for the styling utilities
Contributions are welcome! Please feel free to submit a Pull Request.