This is an example Flask application demonstrating how to connect with WordPress.com using OAuth2.
-
Clone this repository and navigate to the
flaskdirectory:cd flask -
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt
-
Configure your WordPress.com credentials:
- Edit
config.pyand set yourclient_idandclient_secret.
- Edit
-
Run the Flask app:
python run.py
-
Open your browser and visit: http://localhost:5001/
Note:
- If you change dependencies, re-run the install command.
- If you encounter import errors, ensure your virtual environment is activated and all dependencies are installed.