Skip to content

Commit 77c391d

Browse files
committed
fix: add command line usage and port configuration
1 parent 0729f9e commit 77c391d

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ This project runs a collaboration server that can be used with the Universal Dat
99
go into the UDT and open a project. Under `Setup > Advanced`, you'll see a button for "Custom Collaboration Server". Put in
1010
the address to the server this project runs and you should be able to collaborate with anyone else on that server.
1111

12+
## Usage
13+
14+
```bash
15+
npm install -g udt-collaboration-server
16+
17+
udt-collaboration-server --port 80
18+
```
19+
1220
## Technical Details
1321

1422
### Technologies Used

bin/cli.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/env node
22

33
const run = require("../index")
4-
run()
4+
// eslint-disable-next-line
5+
const { argv } = require("yargs/yargs")(process.argv)
6+
console.log({ argv })
7+
run(argv)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"micro-query": "^0.3.0",
2828
"microrouter": "^3.1.3",
2929
"randomstring": "^1.1.5",
30-
"rfc6902": "^4.0.1"
30+
"rfc6902": "^4.0.1",
31+
"yargs": "^16.0.3"
3132
},
3233
"devDependencies": {
3334
"@semantic-release/git": "^9.0.0",

tests/upload-large-dataset.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test("Create session", async (t) => {
1919
samples: [],
2020
}
2121

22-
const numSamples = 100000
22+
const numSamples = 50000
2323
for (let i = 0; i < numSamples; i++) {
2424
udt.samples.push({
2525
imageUrl:

0 commit comments

Comments
 (0)