An open API service indexing awesome lists of open source software.

https://github.com/sauravrwt/wallpaper-app

Art-Gallery Web-App with made up of reactjs uses Pexel api to deliver high-quality wallpaper content. The website offers a wide variety of wallpapers for users to choose from, and the content is updated regularly.
https://github.com/sauravrwt/wallpaper-app

masonary-grid pexels-api reactjs simplelightbox wallpaper-app

Last synced: about 2 months ago
JSON representation

Art-Gallery Web-App with made up of reactjs uses Pexel api to deliver high-quality wallpaper content. The website offers a wide variety of wallpapers for users to choose from, and the content is updated regularly.

Awesome Lists containing this project

README

          

# Art-Gallery

## Overview

Art-Gallery is a modern web application built with React.js that provides high-quality wallArt-Gallery using the Pexels API. The application offers:

- High-quality wallpaper collection.
- Regularly updated content.
- Easy navigation system.
- User-friendly interface.

## Features

- Smart Search with Recent Searches (persisted in localStorage).
- Clear cache buttons.
- Advanced Caching System (1-hour duration).
- Responsive Design with Modern UI.
- Infinite Scroll with Intersection Observer.
- SimpleLightbox Image Preview.
- Direct High-Resolution Image Download.
- Search History Pills.
- Suggustions in pills.
- Performance Optimizations with React Hooks.

## Preview

## Installation

### Prerequisites

- Node.js
- npm (Node Package Manager)

### Setup Instructions

1. **Clone the repository**

```bash
git clone https://github.com/SauRavRwT/Wallpaper-App.git
```

2. **Install dependencies**

```bash
cd Wallpaper-App
npm install
```

3. **Configure API Key**

The app reads the key from an environment variable. Follow these steps:
- Obtain your API key from [Pexels](https://www.pexels.com/api/key/).
- Create a `.env` file in the project root (same folder as `package.json`).
- Add the following line, replacing with your actual key:

```env
REACT_APP_PEXELS_API_KEY=YOUR_API_KEY_HERE
```

- Restart the development server if it’s already running.

If the key is missing or invalid, the app will log an error and show no images.

4. **Run the application**

```bash
npm start
```

The application will open at [http://localhost:3000](http://localhost:3000)

## Development

### Available Scripts

- `npm start` - Runs the app in development mode
- `npm run build` - Creates a production build in the `build` folder

## Contributing

We welcome contributions! If you’d like to help improve this project, feel free to fork the repository and submit a Pull Request.