In a world where words weave magic and poetry paints pictures, welcome to Poemdle - where the art of guessing meets the beauty of verse. Instead of guessing just one word, you unravel the mysteries of entire poems. Welcome to a new dimension of wordplay, where every guess is a step closer to unlocking the poet's heart.
Try it live at Poemdle
Poemdle.mp4
Watch on YouTube
- MindsDB
- Flagsmith
- React
- Javacript
- Python
- CSS
- MindsDB setup locally or access to cloud MindsDB.
- Flagsmith account.
- OpenAI API key.
-
Clone the Repository:
git clone https://github.com/aj1904/poemdle-app.git
-
Navigate to the Project Directory:
cd poemdle-app
-
Install Dependencies:
npm install
-
Setup MindsDB account, database and model
- Run the SQL queries present in MindsDBSQLSetup.sql.
- Use your OpenAI API key.
- Setup Flagsmith account
- Use your Flagsmith environment id in index.js file.
- Define these flags in your Flagsmith account:
- footer: this determines whether to show footer or not.
- help_popup: this determines whether to show help instructions or not (Work in progress).
- hints: this determines whether to enable hints or not.
- score_tracking: this determines whether to track scores or not.
- Setup Backend (Optional)
- Not required necessarily, the app works without it.
- But if you want to try your hands on new poems everyday, you can use this python script to connect to your MindsDB database and generate a new poem which will get updated in
poemtoday.js
file. - Pass a topic name to generate a poem of your wish.
python backend.py 'love'
- You also have an option to save generated poems in MongoDB database for future reference.
- Run the Application:
npm start
- Navigate to https://localhost:3000 and have fun!
- Or try it live at Poemdle