https://github.com/xutyxd/photron
A server to manage resources splitting into chunks for parallel download
https://github.com/xutyxd/photron
download file-sharing file-sharing-server filesystem javascript openapi parallel typescript
Last synced: 4 months ago
JSON representation
A server to manage resources splitting into chunks for parallel download
- Host: GitHub
- URL: https://github.com/xutyxd/photron
- Owner: xutyxd
- License: agpl-3.0
- Created: 2024-09-01T16:24:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-03T22:02:17.000Z (over 1 year ago)
- Last Synced: 2025-05-07T03:47:10.957Z (about 1 year ago)
- Topics: download, file-sharing, file-sharing-server, filesystem, javascript, openapi, parallel, typescript
- Language: TypeScript
- Homepage:
- Size: 1010 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Server to manage resources splitting into chunks for parallel download
⚠️ This is a work in progress, the API is not stable yet.⚠️
## Setup
### Environment variables
```env
# Port to run the server
PORT=8080
# Keys to sign cookies
COOKIES_KEYS=[]
# Keys of OAuth2 from Google
OAUTH2_KEYS={"web":{"client_id":"client_id","project_id":"project_id","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"client_secret","redirect_uris":["http://localhost:8080/auth/google/callback"]}}
# MongoDB
MONGODB_URI=mongodb://localhost:27017
MONGODB_DATABASE=photron
```
## Start
```sh
npm start:local
```
## Tests
```sh
npm run test:ts
npm run test:units
npm run test:functionals
```