Giter Club home page Giter Club logo

filebox's Introduction

build

Overview

A simple web-based file storage service built on top of AWS infrastructure. Users upload small files which are stored on Amazon S3. File metadata and user data are persisted on a DynamoDB table. I chose DynamoDB for the database because it's a good fit for the one-to-many relationship between users and files.

User login is implemented using the OAuth 2.0 authorization code flow with Github as the authorization server. User session is managed using browser cookies. To make things interesting I chose to implement the OAuth2 flow and session management manually without using any of the robust integrations offered by the Spring Framework.

Tech Stack

  • Java 11 - The application backend code is written in Java.
  • Spring Boot - An application server, web framework and HTML templating engine.
  • AWS DynamoDB - NoSQL store for persisting user data and file metadata.
  • AWS S3 - For secure storage of the actual files.
  • AWS Elastic Beanstalk - For conveniently deploying the application to an AWS production environment.
  • Bulma CSS - For the layout and styling of the user interface.

Deploying Locally

To deploy this project on your local machine you'll need a Github OAuth app and AWS credentials. Also, a Maven profile (in settings.xml) with properties as shown below.

<profile>
    <id>filebox-local</id>
	    <properties>
		    <aws.s3.bucket>{TODO}</aws.s3.bucket>
		    <aws.dynamo.user.table>{TODO}</aws.dynamo.user.table>
		    <aws.s3.region>{TODO}</aws.s3.region>
		    <aws.dynamo.region>{TODO}</aws.dynamo.region>
		    <github.client.secret>{TODO}</github.client.secret>
		    <github.client.id>{TODO}</github.client.id>
		    <filebox.host>{TODO}</filebox.host>
		    <filebox.port>{TODO}</filebox.port>	
	    </properties>
</profile>

The application can be started using the Spring Boot Maven plugin and passing the name of the Maven profile i.e mvn spring-boot:run -Pfilebox-local.

filebox's People

Contributors

adeshinao avatar

Watchers

 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.