Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielshow/image-filter
Cloud Nanodegree project
https://github.com/danielshow/image-filter
Last synced: about 2 months ago
JSON representation
Cloud Nanodegree project
- Host: GitHub
- URL: https://github.com/danielshow/image-filter
- Owner: Danielshow
- Created: 2021-07-21T10:24:21.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-21T14:14:23.000Z (over 3 years ago)
- Last Synced: 2023-03-02T09:15:59.327Z (almost 2 years ago)
- Language: TypeScript
- Size: 1.39 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Udagram Image Filtering Microservice
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:
1. [The Simple Frontend](https://github.com/udacity/cloud-developer/tree/master/course-02/exercises/udacity-c2-frontend)
A basic Ionic client web application which consumes the RestAPI Backend. [Covered in the course]
2. [The RestAPI Backend](https://github.com/udacity/cloud-developer/tree/master/course-02/exercises/udacity-c2-restapi), a Node-Express server which can be deployed to a cloud service. [Covered in the course]
3. [The Image Filtering Microservice](https://github.com/udacity/cloud-developer/tree/master/course-02/project/image-filter-starter-code), the final project for the course. It is a Node-Express application which runs a simple script to process images. [Your assignment]## Tasks
### Setup Node Environment
You'll need to create a new node server. Open a new terminal within the project directory and run:
1. Initialize a new project: `npm i`
2. run the development server with `npm run dev`### Create a new endpoint in the server.ts file
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.
```typescript
import {filterImageFromURL, deleteLocalFiles} from './util/util';
```### Deploying your system
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.
## Stand Out (Optional)
### Refactor the course RESTapi
If you're feeling up to it, refactor the course RESTapi to make a request to your newly provisioned image server.
### Authentication
Prevent requests without valid authentication headers.
> !!NOTE if you choose to submit this, make sure to add the token to the postman collection and export the postman collection file to your submission so we can review!### Custom Domain Name
Add your own domain name and have it point to the running services (try adding a subdomain name to point to the processing server)
> !NOTE: Domain names are not included in AWS’ free tier and will incur a cost.