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
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
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/
- Click file name to download
- Click folder name to change dir
- Click local file name in dropdown menu top-right corner to upload file
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.