Skip to content

Not only index, but also management. Files delete, upload and folder creation are supported. 包含删除上传和新建等文件操作的onedrive管理页面。Password for demo page below:123456

License

Notifications You must be signed in to change notification settings

xieqifei/onedrive-vercel-manage

Repository files navigation

Onedrive-vercel-manage

[English|中文]

!importent

Due to the unknown risks from the requirement of read-write access to onedrive API, I strongly suggest that you DO NOT use this project for the onedrive where important files are stored. Any potential bugs could be used and cause devastating loss.

For safty, the in config/site.config.js defined baseDirectory are defaultly by password protected. So, the first thing to access it, you need to create a new file named ".password", and type a password into it, OR change protectedRoutes: ['/'], in site.config.js to protectedRoutes: []. That will make your storage out of protection.

1. Features

  • Breakpoint and big files upload

Known issue is that failure occurs when uploading using the onedrive account for developer. But it works for personal onedrive account.

1671551482036

  • New folder ceation

1671551391526

  • Delete

1671551433504

2. Get Started

This project is inspired from onedrive-vercel-index, so there you can find detailed docs for deployment.

Click here to see Get Started.

❗❗❗Before deployment, DO NOT run it using defaut command, otherwise deployment can be failed.

Use npm install --legacy-peer-deps instead of npm i or npm install

Use npm run build to run it at vercel

1671554527703

You can turn to app.redislabs.com get free Redis database.

3. Dev

Use npm run dev run it on local server

You can create a new file name .env.local

add content like below in this file. This REDIS_URL is redis db url, including username, password, host and port. You can get free one at redis.io, or other companys.

REDIS_URL=redis://default:PSaAoZW**********Fbs2cPB8F1@redis-10009.c300.eu-central-1-1.ec2.cloud.redislabs.com:10989

then it will perfectly run on your local PC

open localhost:3000 on your browser to debug codes

About

Not only index, but also management. Files delete, upload and folder creation are supported. 包含删除上传和新建等文件操作的onedrive管理页面。Password for demo page below:123456

Resources

License

Stars

Watchers

Forks

Releases

No releases published