Let’s discuss your “Image Search Abstraction Layer”

Link : https://search-images.glitch.me/
Repo : https://github.com/Dereje1/Image-Search

Interesting project, the main addition from the previous one is accessing a third party API from the back-end, obviously we have accessed 3rd party API from the front-end in the front-end projects before, I guess there is value in accessing such information from the back-end as well ?

In any event, I also, for the first time, created a new module and imported it, the module only does an https request using just node and no other external libraries, you don’t really need a separate module for this project, but it helps for cleaner code and thought I would learn this sooner rather than later.

One major issue with this project is in using the google custom search engine API, which only allows for 100 requests / day, I hit my limit as I was developing it, in that event I modified my code to respond with the exceeded limit error JSON response from the custom search engine, note that this does not come back as a real error in the callback itself, so had to handle the result itself as an error, if that makes sense.

Project => https://jolav.me/freecodecamp/old/apis/search/search.html
Code => https://github.com/jolav/freeCodeCamp/tree/master/old/apis

Project => https://dfire-image-search-abstraction.glitch.me/imagesearch/
Code => https://github.com/dfirebaugh/image-search-abstraction-layer

72 lines!

Finally :ship: the Image Search project. For this project I started to try to modularize my app a bit more. I used the last project’s mlab database. Some of the challenging parts for me on this one:

  • Trying out various modules for Google Search API, ended up using request-promise module and it worked out great.
  • Learning Mongoose and getting the the database pieces to work across various files

I found the Risting Stack Blog really helpful for this project.

Here are the project links. Any feedback welcome.

Your example of use is https://ja-urlshortener-ms.glitch.me/api/imagesearch/dresses?offset=10 instead of https://ja-imagesearch-ms.glitch.me/api/imagesearch/dresses?offset=10

Thanks for catching that @zdflower. Cut and paste error. I fixed it both on Glitch and in the GitHub repo. :ship:

Hello there,

Finally my project done with the Custom Search Google API.
As usual any feedback before posting it welcome.

Glitch Project
Github Repo

My Image Search Abstraction Layer
Project: https://imsearch-dm-freecodecamp.herokuapp.com/
Repo: https://github.com/daniel-mlr/isal-fcc

Not very satisfied with this code. For one, I gave a try with mongoose. Searching for documentation has been very frustrating. I tried to get the timestamp included with the _id field in queries and searches on stack overflow and in mongoose site didn’t enlighten me. Anybody have a good tutorial (beyond basics) to suggest?

Project Link - https://letsziggy-freecodecamp-image-search-abstraction-layer.glitch.me/
Source Code - https://github.com/LetsZiggy/FreeCodeCamp-Image-Search-Abstraction-Layer

Note: I’m using plain Node.js APIs instead of Express.

Are we to supply our own data for this challenge? Or is there a 3rd-party API we can query for information on images?

The challenge is not clear on this requirement.

I’m not sure if you got an answer elsewhere, but I’m using a third party API. It seems this is the most common method based on other user submissions.

Google’s Custom Query API is a popular choice.

Note that I’m closing this thread. It’s much easier to get feedback if you create your own individual post requesting feedback for your own specific project.

1 Like