A file server / cloud-like storage webpage created for uploading and downloading files fast, sharing across multiple people and devices locally.
Bun and golang should be installed: https://bun.sh/ https://go.dev/doc/install
Clone the repository:
git clone https://github.com/complex-syndrome/file_server.git
cd file_server
Run the program: For windows:
.\build.bat
.\start.bat
For linux / macOS:
./build.sh
./start.sh
Upload files
Delete files
Search files
Login
Settings
file_server/.env
to access itDynamic reload is available for all operations (upload, delete, edit settings)
To use the API directly from other machines, AllowOtherIPs
should be set to true
in settings.
List all files in resource folder:
curl http://SERVER_IP:FRONTEND_PORT/api/list
Download a file from the resource folder:
curl http://SERVER_IP:FRONTEND_PORT/api/download?file=FILE_NAME
Upload a file to the resource folder:
curl http://SERVER_IP:FRONTEND_PORT/api/upload -X POST -F file=@FILE_NAME
Before continuing: The commands onwards are limited to localhost only
Delete a file from the resource folder:
curl http://localhost:FRONTEND_PORT/api/delete?file=FILE_NAME -X DELETE
List all settings:
curl http://localhost:FRONTEND_PORT/api/settings/list
Update settings:
curl "http://localhost:FRONTEND_PORT/api/settings/update" -X POST -d "{\"SETTING_KEY\": SETTING_VALUE}"
Mah Han Cheng (me)