Deprecated - This repository was used as a proof of concept. Current development is at https://github.com/Horizontal-org/tellaweb-nestjs
This package contains the backend for Tella Web and is compatible with direct-upload. It allows to manage the users via command line and to run the server for http access. The server allows to use HTTPS with configurable domain and ports.
$ git clone https://github.com/Horizontal-org/tellaweb-backend.git
$ cd tellaweb-backend
$ npm install
$ ./bin/run COMMAND
running command...
$ ./bin/run (-v|--version|version)
tellaweb-backend/0.0.1 linux-x64 node-v14.15.4
$ ./bin/run --help [COMMAND]
USAGE
$ ./bin/run COMMAND
...
tellaweb-backend about
tellaweb-backend auth:add
tellaweb-backend auth:change-password
tellaweb-backend auth:del
tellaweb-backend auth:list
tellaweb-backend help [COMMAND]
tellaweb-backend server
About direct-upload and Horizontal
USAGE
$ ./bin/run about
See code: src/commands/about.ts
Add user authentication if doesn't already exist.
USAGE
$ ./bin/run auth:add
OPTIONS
-d, --db=db [default: db]
-f, --files=files [default: data]
-l, --verbose
-u, --username=username (required)
See code: src/commands/auth/add.ts
Change user authentication. Will prompt for password
USAGE
$ ./bin/run auth:change-password
OPTIONS
-d, --db=db [default: db]
-f, --files=files [default: data]
-l, --verbose
-u, --username=username (required)
See code: src/commands/auth/change-password.ts
Delete user authentication
USAGE
$ ./bin/run auth:del
OPTIONS
-d, --db=db [default: db]
-f, --files=files [default: data]
-l, --verbose
-u, --username=username (required)
See code: src/commands/auth/del.ts
List usernames
USAGE
$ ./bin/run auth:list
OPTIONS
-d, --db=db [default: db]
-f, --files=files [default: data]
-l, --verbose
See code: src/commands/auth/list.ts
display help for tellaweb-backend
USAGE
$ ./bin/run help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
Start Tella Direct Upload Server
USAGE
$ ./bin/run server
OPTIONS
-a, --address=address [default: :8080] address for server to bind to
-c, --cert=cert certificate file, ie. ./fullcert.pem
-d, --database=database [default: ./direct-upload.db] direct-upload database file
-d, --db=db [default: db]
-f, --files=files [default: ./data] path where direct-upload server stores uploaded files
-h, --help show CLI help
-k, --key=key private key file, ie: ./key.pem
-l, --verbose
See code: src/commands/server.ts