Giter Site home page Giter Site logo

filetransfer's Introduction

fileTransfer项目文档

简介

学习了一下前端,心血来潮写一个在线传输文件的项目,可以传多个文件或文件夹,什么安全校验、大文件分块传输的,统统都没有,能传个文件就不错了,速度看带宽,稳定看运气

用到的技术栈

前端:

  • 语言

    • HTML
    • CSS
    • JS
    • clipboard.js
    • jszip.js

后端:

  • 语言
    • Python
  • 框架
    • Flask

部署

后端

  1. 克隆此项目
git clone https://github.com/the-lazy-me/fileTransfer
  1. 安装后端所需的pip包
cd backEnd
pip install -r requirements.txt
  1. 启动后端(非生产环境)
python main.py
  1. 程序将在5000端口进行

前端

安装并配置nginx

项目结构

|-- README.md
|-- backEnd/
  |-- main.py				--主程序
  |-- record.txt			--记录每次上传时生成的transferCode
  |-- requirements.txt
  |-- uploads/				--存放上传上来的文件
|-- fontEnd/
  |-- CSS/
    |-- base.css			--用于重设样式
    |-- index.css			--公共样式
    |-- leftAside.css		--控制页面左侧样式
    |-- rightAside.css
  |-- JS/
    |-- clipboard.js		--剪贴板库
    |-- jszip.js			--压缩文件的
    |-- receive.js			--控制接收文件部分的UI和逻辑
    |-- send.js
  |-- img/
    |-- bgimg.png
  |-- index.html

如果想修改请求端口,在receive.js和send.js中

未来

等我再学的深入一些,这个项目会做更新

filetransfer's People

Contributors

the-lazy-me avatar

Stargazers

WangCham avatar Junyan Qin avatar  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.