Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

vtange/imgsearcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imgsearcher

Client sends keyword, Server performs Bing Search on behalf of Client and returns to Client the results.

Tech

Bing Image API (request + q), Express, Angular

Niceties

Storing recent searches in a server side variable.

Details

CSS

  • Using flexbox to display results in gallery format

JS

  • How to use Bing API with pages and all.
  • How to use a Promise with 'Q'. respond for GET and POST request after Promise is resolved
	var deferred = Q.defer();
    request.get(url, {auth: { user: key, password: key} }, function (error, result) {
		     deferred.resolve(result.body);
    })
    
  	deferred.promise.then(function (value) {
  		value = JSON.parse(value);
  		var arr = value.d.results;
  		res.send(arr.slice(0,10));
  	});

About

Bing Image Search API on Heroku

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors