Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        





Photron logo



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
```