This web application fetches the 5 most popular submissions from Hacker News (Y Combinator) every day and displays them as Magic The Gathering cards. Each card features an AI-generated image based on the submission's title, using the Dall-E API. The cards are draggable and can be stacked, making for an interactive and modern user interface.
- Fetches 5 most popular submissions from Hacker News daily
- Displays submissions as visually appealing Magic The Gathering cards
- AI-generated images based on submission titles using Dall-E API
- Draggable cards for an interactive user experience
- Responsive design with Bootstrap
- Asynchronous card loading with progress circle
-
Clone the repository:
git clone https://github.com/bahrep/hn-cards.git cd hn-cards
-
Install required packages:
pip install asyncio aiohttp openai flask
-
Set up the OpenAI API key environment variable:
export OPENAI_API_KEY="your_openai_api_key"
-
Run the application:
python app.py
-
Open your browser and navigate to
http://localhost:5000
.
I did not write any of the code or text myself; it was all generated by GPT-4. My role was simply to compile all of the code into one project and write this note.