Giter Club home page Giter Club logo

s3photoapp's Introduction

Picture Upload

PO: Anthony James

A multi-project repo of services that work together to form a demo to enable users to get and upload photos to Amazon S3.

About this project

This project is composed of independent Node.js services:

  • web-client: a front-end client for viewing and storing images
  • photo-filter: a REST API for applying filters to a given image
  • photo-storage: a REST API for creating, reading, and deleting images in Amazon S3

Development Installation

  1. Clone the repository into your local machine
  2. Go into the new folder s3-photos folder and run make install to install all the packages for each app.

Development Deployment

Using your local machine

  1. Install via Development Installation instructions
  2. Ensure that you have completed AWS CLI configuration on your host machine (see: Configuring the AWS CLI)
  3. Go into each folder in s3-photos/apps and run npm run dev

Verifying Deployment

  1. Navigate to the web-client homepage at localhost:3000
  2. Select an image file (jpeg, png, bmp only) and upload
  3. Observe the image has had a greyscale filter applied to it and added to the list of images

Environment Variables

Environment Variable Reference

web-client:

  • PORT:
    • Default: "3000"
    • Description: The port number to listen on
  • FILTER_HOST:
    • Default: "localhost"
    • Description: The host name of the url that the photo-filter service is listening on.
  • FILTER_PORT:
    • Default: "3002"
    • Description: The port number of the url that the photo-filter service is listening on.
  • STORAGE_HOST:
    • Default: "localhost"
    • Description: The host name of the url that the photo-storage service is listening on.
  • STORAGE_PORT:
    • Default: "3001"
    • Description: The port number of the url that the photo-filter service is listening on.
  • AWS_REGION:
    • Default: "us-east-1"
    • Description: The region to send AWS S3 Requests to
  • DEBUG
    • Default: none
    • Description: Print logs of a specified type for debugging purposes
    • Possible Values: none, 'APP_VARS', '*'

photo-filter:

  • PORT:
    • Default: "3002"
    • Description: The port number to listen on

photo-storage:

  • PORT:
    • Default: "3001"
    • Description: The port number to listen on
  • STAGE:
    • Default: none
    • Description: The deployment environment
  • AWS_REGION:
    • Default: "us-east-1"
    • Description: The region to send AWS S3 Requests to

s3photoapp's People

Contributors

harrison-m avatar jonajonlee avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.