Code Monkey home page Code Monkey logo

yaftp-ui's Introduction

yaftp-ui: Web User Interface of Yet anoter file transfer protocol

Web-gui client of yet another file tranfer protocol, my 5th project of Computer Network course of FDU.

Build with flask and my own yaftp package.

yaftp package: https://github.com/ofey404/yaftp

Usage

Prerequisite: install yaftp package.

git clone https://github.com/ofey404/yaftp.git
cd yaftp
pip install -e .

Clone the ui project:

git clone https://github.com/ofey404/yaftp-ui.git
cd yaftp-ui

Play around

Start a yaftp server for test:

$ make server
python scripts/set_up_server.py
24565 - [DEBUG] - 21-01-01 23:20:53 - Using selector: EpollSelector

Run in another terminal:

$ make run
./scripts/clear.sh
./scripts/run.sh
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

Visit http://127.0.0.1:5000/

connection page

  • Click file name to download
  • Click folder name to change dir
  • Click local file name in dropdown menu top-right corner to upload file

inside

Add Other authentications: auth

Implementation detail

Build with flask.

Cardinal saved in sqlite3.

Maintain current path of each authentication on the server.

When request comes, login, then cd to that path, do operation then logout.

I didn't maintain a full session, for implementation is harder.

Reference

yaftp-ui's People

Contributors

ofey404 avatar

Watchers

James Cloos avatar  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.