This is an image and video search application powered by the Pexels API. It allows users to search for high-quality images and videos by entering keywords. The application fetches data from the Pexels API to provide a seamless and visually appealing experience.
Key highlights of the application include:
By utilizing the Pexels API, this application provides access to a vast library of free-to-use images and videos, making it a valuable tool for content creators, designers, and anyone in need of high-quality media.
Please find some of the screenshots of the application below.
Sign up of this https://www.pexels.com/api/ Pexels website and get your API key. This API does have generous free tier which should be good enough for experimentation. The goal is this application was to implement a visual gallery consisting of images and videos which includes features like search and load more data on demand.
Once you got the key, you need to create an env file inside the root folder.
VITE_API_KEY=your_key
Install the dependencies and you should be fine.
server-side rendering (SSR), consider the following:
By balancing SSR and client-side rendering, you can optimize performance and user experience.
To run the project locally, follow these steps:
git clone https://github.com/apfirebolt/sveltekit-pexels-gallery.git
cd sveltekit-pexels-gallery
npm install
npm run dev
http://localhost:8080
.If you liked this project and found it helpful, please consider giving it a ⭐ on GitHub!
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE
file for details.