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.
Finally 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
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?
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.