Skip to content

Golang, AWS S3, SQS. Online file vault. Multi-file upload, advanced file search, public & private sharing files and folders

Notifications You must be signed in to change notification settings

TarunCore/file-drive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

https://github.com/TarunCore/file-drive.git

Tech Stack

Backend

  • Golang – Language
  • PostgreSQL - Database
  • Gin – Framework
  • sqlc – ORM
  • migrateMigrations

AWS

  • S3
  • SQS

Frontend

  • Next.js – Framework
  • Hero UI – Components

Setup

Backend Setup

  1. Navigate to the backend folder:

    cd server
  2. Install dependencies (if any):

    go mod tidy
  3. Run the backend server:

    go run main.go

    Add .env file.

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
S3_BUCKET_NAME=
DATABASE_URL="user=root password=password host=localhost port=5433 dbname=filedrive sslmode=disable"
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=

Frontend Setup

  1. Navigate to the frontend folder:

    cd file-drive-app
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev

Env file

NEXT_PUBLIC_API_BASE_URL=http://localhost:8080/api/v1
NEXT_PUBLIC_FRONTEND_URL=http://localhost:3000
NEXT_PUBLIC_GOOGLE_CLIENT_ID=

The frontend should now be running at: http://localhost:3000

Others

Todo

  • Containerize apps
  • Check failed uploads and remove from DB
  • (or) write db record only after uploads

About

Golang, AWS S3, SQS. Online file vault. Multi-file upload, advanced file search, public & private sharing files and folders

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published