Skip to content

ericksonjoseph/example-java-spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignment

Features

Uses an in memory database for portability and easy testing. Docker image available in case durability is the priority. Automatically backs up all uploads to a configurable S3 bucket! Automatically transcodes all uploads using the VP9 codec!

Usage

  • Make sure you have a default profile in your ~/.aws/credentials file. i.e:
[default]
aws_access_key_id = "ACCESS-KEY-ID"
aws_secret_access_key = "SECRET-ACCESS-KEY"
  • Run: make run
  • navigate to localhost:8080
  • username & password = root

If you dont have make installed

Run: mvn install && java -jar target/assignment-1.0.0.jar

You may edit the business application config

vim src/main/resources/app.config.properties

Defaults
  • Max vido duration = 10 (minutes)
  • Video upload directory = uploads
  • Required format =mp4
  • Username = root
  • Password = root

You may edit the spring application config

vim src/main/resources/application.properties

Docker

If you have docker installed and want to persist the data:

  • Provide your db settings: vim src/main/resources/application.properties

Assumptions

  • Assuming the system has maven 3 and java 8 installed
  • Assuming the system has ffprobe installed at /usr/local/bin/ffprobe
  • Assuming the file upload will not exceed 10GB
  • Assuming that chef templates will remove the hardcoded and sensitive values in the config at deployment
  • Assuming the aws user profile has sufficient permissions to upload to the configured S3 bucket

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published