Skip to content

A fullstack web application for seamless file sharing at events like weddings or parties, built with a serverless architecture using Google Cloud, Terraform, Go, Python, and Flutter.

Notifications You must be signed in to change notification settings

kryczkal/EasyVault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 

Repository files navigation

FullStack Web Application

This project is a full-featured fullstack web application designed for file sharing with friends on events like weddings or parties. It leverages Google Cloud for a serverless architecture, using Terraform for infrastructure management, Go and Python for the backend, and Flutter for the frontend.

Project Structure

  • Backend: Contains all server-side logic divided into functions, database management scripts, and Terraform configuration files for deploying to Google Cloud.
  • Frontend: Flutter-based UI components for a responsive web and mobile experience.

Backend Details

  • Functions: Serverless functions to handle operations like file uploads/downloads, user management, and session handling.
  • Database: Scripts for database setup, state management, and trigger setups.
  • Terraform: Infrastructure as Code files to manage resources on Google Cloud Platform.

Frontend Details

  • Flutter App: A cross-platform application providing a user-friendly interface for interacting with the backend services.

Setup and Deployment

Prerequisites

  • Google Cloud Account
  • Terraform installed
  • Flutter SDK
  • Go and Python environments set up

Configuring the Backend

Terraform Setup:

  1. Create a new project in Google Cloud Platform
  2. Authorize the Google Cloud SDK
gcloud auth login (on machines without a browser the --no-browser flag can be used)
  1. Select the project in the Google Cloud SDK
gcloud config set project <project-id>
  1. Create a new service account and download the key file create-gcloud-credentials.sh) (ensure you have the necessary permissions on the google cloud)

  2. Tweak the terraform variables.tf file to match your project id and service account key file path

  3. Prepare terraform for migrating the backend to google cloud You will need to disable the "gcs" backend in the terraform_backend.tf file (comment it out), run terraform init once, and then uncomment it, so we can migrate the backend from local to gcloud

  4. Create a Google Cloud Bucket for the terraform state

cd backend/terraform
./migrate_backend_to_gcloud.sh
  1. Deploy the infrastructure using terraform:
cd backend/terraform
terraform init
terraform apply

Configuring the Frontend

  1. Flutter Setup:
    • Navigate to the frontend directory.
    • Run flutter pub get to install dependencies.
    • Start the application with flutter run.

Usage

  • The web application allows users to securely share files with their friends.
  • Functions like file upload/download, session management, and user creation/deletion are handled through the serverless backend.
  • There is currently no in-app ordering method, so "sessions" are created manually through the "create_order" function, followed by a call to "auto-sessions" to automatically create and destroy the sessions

Contributing

Contributions are welcome. Please fork the project and submit a pull request with your changes.

About

A fullstack web application for seamless file sharing at events like weddings or parties, built with a serverless architecture using Google Cloud, Terraform, Go, Python, and Flutter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published