Skip to content

patricksile/vanilla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Build an Image Search App:

Links for Accounts, Installations and References:

ACCOUNTS AND INSTALLATIONS

Please make sure you have these accounts created and verified, plus all the installations.

REFERENCES:

I will recommend you spent 5 mins on these concepts don't sweat it too, it is just for your awareness now.

Link to the finished app:

Image Search APP (VANILLAJS)


Visual Idea of the App:

example-site


Vanilla JS

the application will contact the unsplash Image Search API.

Image search API like Unsplash

https://api.unsplash.com/search/photos/

You will need an access key from unsplash.com. After signing up as a developper, create an application here:unsplash application link

All apps will use the skeleton CSS framework You can use the CDN link down here or just keep a minified version offline:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css">

Use this style for the body:

body {
  width: 80%;
  margin: 2em auto 0 auto;
}

This app demonstrates:

  • User Input
  • DOM Events
  • API Requests
  • Conditional Rendering
  • Rendering Lists of Data

Vanilla JS Checklist


  • Add search form to page
  • Make API Request with search term when form is submitted
  • Show loading image
  • Append Results to the page
  • Hide loading image

VueJS

Things you will have to lookup in the VueJS documentation:

In VueJS guide Read on this topics:

Introduction to VueJS Introduction — Vue.js

VueJS Documentation

VueJS Checklist

  • Install VueJS
    npm i -g @vue/cli
    • Install Vue boilerplate
    vue create <vue project name>
  • Serve the Vue Project
    yarn serve
  • Remove un-needed things delete /components/HelloWorld.vue and clean up (App.vue)
    • Install the VSCode extension "Vetur"
  • Add Skeleton CDN link in /public/index.html
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css">
  • Add search form to page.
  • Update state when iput changes
  • Make API Request with search term when form is submitted
  • Show loading image
  • Append Results to the page
  • Hidde loading image

About

Image Search App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published