yunpandemo
1.0.0
The front-end uses element-ui component library
The backend uses nodejs to write the server and mongodb as the database.
Separation of front and back ends
When not logged in
after logging in
First start the service of the database moogodb
cilent folder
1.npm install
2. npm run serve
server folder
1.npm install
2.node index.js
address | Way | parameters or loads | effect | response |
---|---|---|---|---|
/ | get | - | Get the front-end page | Front-end page./dist/index.html |
/login | post | psd | Submit login password | 1 Success 0 Error 2 Password is empty |
/logout | get | - | Log out | 1 success 0 error |
/list | get | - | Get file list | json |
/publicchange | get | filename | Change the open status of a file | 1 success 0 error |
/delete | get | filename | Delete files | 1 success 0 error |
/up | post | binary file | Upload files | 1 success 0 error |