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 project is split into three parts:
- The Simple Frontend A basic Ionic client web application which consumes the RestAPI Backend. [Covered in the course]
- The RestAPI Backend, a Node-Express server which can be deployed to a cloud service. [Covered in the course]
- The Image Filtering Microservice, the final project for the course. It is a Node-Express application which runs a simple script to process images. [Your assignment]
You'll need to create a new node server. Open a new terminal within the project directory and run:
- Initialize a new project:
npm i
- run the development server with
npm run dev
The starter code has a task for you to complete an endpoint in ./src/server.ts
which uses query parameter to download an image from a public URL, filter the image, and return the result.
We've included a few helper functions to handle some of these concepts and we're importing it for you at the top of the ./src/server.ts
file.
import { filterImageFromURL, deleteLocalFiles } from "./util/util";
Follow the process described in the course to eb init
a new application and eb create
a new environment to deploy your image-filter service! Don't forget you can use eb deploy
to push changes.
http://image-filter-starter-code-dev22222222.us-east-1.elasticbeanstalk.com/
- deployment_screenshots.JPG: EBS screenshots running
- screen1.JPG: eb init
- screen2.JPG: eb create deployed but with error, error cause by not running
npm run build
- screen3.JPG: build again and eb deploy, error because of while adding
deploy:
artifact: ./www/Archive.zip
to the config file a special character was getting in the way.
- screen4.JPG: Error resolve so was able to deploy.