This project fetches images from the Pexels API based on user-selected interests and categories. Users can view, like, save, and download images in a professional dashboard interface.
- Fetch images from Pexels API per selected interests.
- Display images in a clean, responsive dashboard.
- Search bar to filter images.
- Infinite scroll to load more images.
- Like, Save, and Download images.
- Categories listed on the left side for easy navigation.
- Fully dynamic dashboard with real-time image updates.
- Python 3.12
- FastAPI
- SQLAlchemy (SQLite)
- Jinja2 templates
- HTTPX
- HTML/CSS/JS
Image_Api_Project/ │ ├── app/ │ ├── main.py │ ├── crud.py │ ├── models.py │ ├── templates/ │ │ ├── select_interests.html │ │ └── dashboard.html │ ├── static/ │ │ ├── css/ │ │ │ └── style.css │ │ └── js/ │ │ └── main.js │ └── db/ │ └── db.sqlite3 │ ├── requirements.txt ├── .gitignore └── README.md
git clone https://github.com/mudassirejaz-art/Image_Api_Project.git
cd Image_Api_Projectpython3 -m venv venv# On Linux/macOS
source venv/bin/activate
# On Windows
venv\Scripts\activatepip install -r requirements.txtCreate a .env file in the root directory and add your Pexels API key:
PEXELS_API_KEY=your_pexels_api_key_here
uvicorn app.main:app --reloadOpen your browser at http://127.0.0.1:8000 to access the dashboard.
- Select your interests on the home page.
- Click Continue to view the dashboard.
- Use the search bar to filter images.
- Scroll down to load more images.
- Like, Save, or Download images using the buttons/icons.
This project is for educational purposes. Feel free to use and modify it for personal projects.