It’s months, maybe years, that I say I want to learn more about Node.js.
This weekend, I had some time to spend on my knowledge finally, so I started looking a bit at the Node.js wrapper built for the WooCommerce REST API.
It’s a Node.js package to interact with WooCommerce REST API.
Claudio did a great job in writing it.
I started studying its code, and almost understood everything (I still miss how to get the oauth library to work though).
At this point, I wanted to give it a try, and build something myself. I looked around for some services I use that still do not have wrappers in Node.js, and I found one that I use a lot, also for this blog: Unsplash.
What is Unsplash?
Unsplash is a website where you can find tons of free to use images. They all are in High-Resolution, so you can use them almost everywhere and for any project.
I use them as dummy data in my projects, or as featured images for this blog’s posts.
What I did not know about Unsplash, is that the developers built an API.
What did I do?
Hand to my text editor, I started by forking our WooCommerce REST API wrapper and then I edited it to make it work with Unsplash.
The result is this one: SiR-DanieL/unsplash-nodejs
I know it’s still not perfect, this is only my first Node.js project.
Also it only works with the public API of Unsplash, which means that you can do almost everything, except for accessing and editing/adding private data such as the user profile, and private photos.
When I’ll figure out how to authenticate using their API, I’ll add that too!
If you feel you can help, please submit a PR to the project, I’ll be more than happy to merge it!
I hope this is not my first and last project in Node.js. It’s an awesome technology that deserves to be known by any developer.