https://github.com/velocitatem/drivecdn
https://github.com/velocitatem/drivecdn
hacktoberfest
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/velocitatem/drivecdn
- Owner: velocitatem
- Created: 2023-10-05T14:54:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-05T14:54:54.000Z (over 1 year ago)
- Last Synced: 2025-03-20T08:49:15.671Z (about 1 month ago)
- Topics: hacktoberfest
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DriveCDN
Google Drive is not ideal as a CDN, but it's free and fast. This project is a simple way to use Google Drive as a CDN for static files.
## Usage
1. Create a new Google Drive account and upload your static files to it.
1. For each file, create a share link for _anyone_ to view the file. This will give you a link like `https://drive.google.com/file/d/0B2.../view?usp=sharing`.
1. Upload this link to the API give by this project `http://localhost:3000/track/file?url={LINK}`. The API will return a new link that you can use to access the file. This link will look like `http://localhost:3000/get/{LINK}`.
1. Use the new link in your HTML or other code.