Skip to content

A distributed file system powered by and applied on South China University of Technology Microsoft Student Club.

License

Notifications You must be signed in to change notification settings

LotteWong/SCUTMSC-DFS

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCUTMSC-DFS

A distributed file system powered by and applied on South China University of Technology Microsoft Student Club.

Copyright © SCUT Microsoft Student Club. All rights reserved.


Architecture

Architecture of SCUTMSC-DFS

Features

  • User Signup / Signin
  • Authorization Interceptor
  • Session Management
  • File Upload / Download
  • Fast Upload
  • Multipart Upload
  • Breakpoint-resumed Download

API List

API Description API Method API URL
Index GET /
File Upload POST /file/upload
File Update PUT /file/update
File Download GET /file/download
File Query GET /file/query
File Delete DELETE /file/delete
User Signup POST /user/signup
User Signin POST /user/signin
User Info GET /user/info

Quick Start

  • Start the server

    go run main.go
  • Browse the client

    Enter http://localhost:8080 .

  • User sign up

    Follow the page guide.

  • User sign in

    Follow the page guide.

  • Get user info

    GET /user/info/?nickname=${nickname} HTTP1.1
    ...
  • Upload the file

    Follow the page guide.

  • Update the file

    PUT /file/update HTTP1.1
    ...
    
    optionType=${optionType}
    &
    fileSha1=${fileSha1}
    &
    fileName=${fileName}
  • Download the file

    GET /file/download/?fileSha1=${fileSha1} HTTP1.1
    ...
  • Query the file(s)

    when querying a single file by file hash:

    GET /file/query/filehash/?fileSha1=${fileSha1} HTTP1.1
    ...

    when querying batch files by limit count

    GET /file/query/limitcount/?limitCount=${limitCount} HTTP1.1
    ...
  • Delete the file

    DELETE /file/delete HTTP1.1
    ...
    
    fileSha1=${fileSha1}

Dependency

About

A distributed file system powered by and applied on South China University of Technology Microsoft Student Club.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 74.4%
  • HTML 24.2%
  • JavaScript 1.3%
  • Dockerfile 0.1%