A small website about gifs using Giphy API to display trending gifs, search by terms, save to favorites and upload to Giphy directly
-
Optimized GIF Search
Find GIFs by keywords with an optimized debounce search, reducing unnecessary API calls. -
Trending GIFs
Discover popular GIFs at a glance with the Trending section, allowing you to stay up-to-date with what's popular. -
Favorite GIFs
Save your favorite GIFs for quick access, making it easy to revisit and share them later. -
GIF Upload with Drag & Drop
Upload GIFs from your device using a drag-and-drop interface with a preview, making it user-friendly and convenient. -
Responsive Masonry Grid Layout
Display GIFs in a responsive, Pinterest-like masonry grid layout powered by the Masonry library, creating a visually pleasing browsing experience. -
Toast Notifications
Get real-time feedback with toast notifications for actions such as saving favorites, uploading GIFs, and more.
Before you begin, ensure you have met the following requirements:
- You have installed Node.js, preferably the latest stable version
- You have a Git client installed on your local machine
To view and run this application locally, please follow these steps:
-
Clone the Repository
Open your terminal and run the following command to clone the repository:
git clone https://github.com/Team-06-alpha-A62/kapow.git
-
Navigate to the Project Directory
Change your directory to the project folder:
cd ./template
-
Install Dependencies
Run the following command to install the necessary npm packages:
npm install
-
Create
apiConfig.js
Inside the
src/common
directory, create a new file calledapiConfig.js
, or through your terminal,assuming that you're inside the template directory, you can paste this code:touch src/common/apiConfig.js
-
Add Your API Key
Copy your existing key, or create a new one from here. Open
apiConfig.js
in your text editor and add your API key in the following format:export const API_KEY = 'api_as_string';
-
Open
index.html
with Live ServerTo view the application, open
index.html
with Live Server. If you're using VS Code, you can install the Live Server extension. Right-click onindex.html
and selectOpen with Live Server
.
After completing the above steps, you should be able to view and interact with the application in your browser. Enjoy!