https://github.com/webrecorder/dat-share
A prototype server to swarm multiple DATs for Webrecorder
https://github.com/webrecorder/dat-share
dat dat-protocol hyperdrive web-archiving
Last synced: 9 days ago
JSON representation
A prototype server to swarm multiple DATs for Webrecorder
- Host: GitHub
- URL: https://github.com/webrecorder/dat-share
- Owner: webrecorder
- Created: 2018-07-11T23:53:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-27T20:23:34.000Z (about 6 years ago)
- Last Synced: 2025-04-14T14:27:00.042Z (15 days ago)
- Topics: dat, dat-protocol, hyperdrive, web-archiving
- Language: JavaScript
- Homepage:
- Size: 238 KB
- Stars: 14
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
dat-share
=======================Webrecorders dat integration backend.
### Installation
To use this project you must first install its dependencies```bash
$ yarn install
# or "npm install"
```### Usage
dat-share provides a cli to help you use this project.The commands available to you are displayed below
```bash
$ ./run.js --help
Usage: run [options]Options:
-V, --version output the version number
-p, --port [port] The port the api server is to bind to (default: 3000)
-h, --host [host] The host address the server is listen on (default: "127.0.0.1")
-s, --swarm-port [port] The port the swarm is to bind to (default: 3282)
-r, --rootDir The root directory that contains the contents to be shared via dat
-l --log should logging be enabled for both the api server and swarm manager
--help output usage information
```Some configuration of the server can be done via the environment variables listed below
- `SWARM_API_HOST`: the host the api server will use (e.g. 127.0.0.1)
- `SWARM_API_PORT`: the port the api server will listen on (e.g. 3000)
- `SWARM_PORT`: the port the swarm will listen on (e.g. 3282)
- `SWARM_ROOT`: the root directory that contains the contents to be shared via dat
- `LOG`: should logging be enabled (exists **yes**, does not exists **no**)
- `Debug=SwarmManager`: enables logging of the actions performed by the swarm manager only