Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 16 days 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 (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-19T17:42:10.000Z (20 days ago)
- Last Synced: 2024-10-20T16:52:33.077Z (19 days 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
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
```