< Back to portfolio

Collection of Microservices

Tech stack: Node, Express, MongoDB

A collection of microservices built with Node.js. The microservices include a timestamp, request header parser, URL shortener, image search, and file metadata microservice.

Image search microservice

Purpose

The microservices show off different features and modules used with Node. For example the URL shortener microservice works with a database. The file metadata microservice works with file uploads using Multer. And so on…

File metadata microservice

  • A small microservice which reads a file you upload. It returns a json object containing the size of the file.
  • It utilises the Multer module for file uploads.
  • Has a max file size limit.

Visit project | See code

Image search microservice

  • A small image search microservice. It accepts a query and optionally an offset, and returns image search results in a json response.
  • Works with the Google Custom Search API, set for image search.
  • It formats and filters the response from Google before sending a json response.

Visit project | See code

URL shortener microservice

  • A microservice which accepts a website address and returns a shortened URL as a JSON response.
  • Vising the shortened URL redirects to the original link.
  • It includes error checking to ensure the URL is valid.
  • It saves the shortened URLs in a database, so the shortened URL always remains active.
  • Features no-conflict random generation of shortened URLs.

Visit project | See code

Request header parser microservice

  • A microservice which parses some information from the HTTP request header and returns it in a JSON response.

Visit project | See code

Timestamp microservice

  • A microservice which accepts a date in the url and returns a JSON response with the unix timestamp and natural data, or null if the date is invalid.

Visit project | See code

< Back to portfolio

^