Udagram is a simple cloud application developed alongside the Udacity Cloud Engineering Nanodegree. It allows users to register and log into a web client, post photos to the feed, and process photos using an image filtering microservice.
The Image Filtering Microservice, the final project in course 2 is a Node-Express application which runs a simple script to process images.
GET /filteredimage?image_url={{URL}}
An endpoint that filters an image from a public url.
- validates the image_url query
- calls filterImageFromURL(image_url) to filter the image
- sends the resulting file in the response
- deletes any files on the server on finish of the response
-
Click this link to test the API.
-
Or, append your own public image url to this link to filter that image
http://cloud-dev-project-2-udagram-image-filte.ap-southeast-2.elasticbeanstalk.com/filteredimage?image_url=
Files are deleted manually by making a PUT call to /delete-files end-point. This is so you can view the collection of filtered images before then removing them. Import the following file in Postman.
cloud-dev-project-2-udagram-image-filter.postman_collection.json
- To run locally, clone repo then from project root run ...
npm install
npm run dev
- AWS Elastic Beanstalk CLI commands.
andrew@andrew-Alienware-Aurora-R5:~/dev/cloud-dev-project-2-udagram-image-filter$
npm run build
eb init
eb create
For deploying updates, used ...
npm run build
eb deploy