A very basic giphy search and Lightobx Preview app
First install dependencies.
$ npm install
Run this command to build and bundle the project.
$ npm run build
or simple run
$ gulp
inside your project folder
To start local server run
$ npm run start
and goto http://127.0.0.1:9400 You should see a search box for searching in giphy. If you have search results, you can click on any item and see the preview in a lightbox. Lightbox has two navigator and works with keyboard arrow keys.
- JS folder contains five js files:
main.js
Used for initialization of applicationsearch.js
contains codes that handle the search with giphy api and show results in the pagepreview.js
contins the codes related to the lightbox previewhelpers.js
contains helper functions
- Less folder contains
.less
files which will be compiled withgulp-less
and concatenated into single filestyle.css
, can be found indist
folder after building project.