#command #path #utilities #self-hosted #cloud #line #media

app ocloud

Command line utilities for a self-hosted cloud

3 releases

0.1.3 Feb 2, 2025
0.1.2 Feb 2, 2025
0.1.0 Feb 1, 2025

#1140 in Web programming

Download history 322/week @ 2025-02-01 16/week @ 2025-02-08 2/week @ 2025-02-15

340 downloads per month

MIT license

55KB
1.5K SLoC

NOTE

DO NOT install this.
This is actively being worked on, and I published it to make sure it compiles correctly

Environment

Rename example.env -> .env, then fill out the variables accordingly.

API

/media/[path]

Note - path is a directory if it ends with '/'.
All directories are created upon access.

GET (file/dir) - Retrieves the file, or lists the directory contents
DELETE (file) - Deletes the file
POST (dir) - Uploads a file to the directory. (sent via multipart)\

TODO

  • for each [file] uploaded, store a [file].meta that contains all the names the media is aliased under. can be used to restore the database and download everything

Dependencies

~79MB
~1.5M SLoC