Skip to content

Filey - a simple peer-to-peer file sharing app, used for transfering and view files, as a lightweight alternative to FTP

License

Notifications You must be signed in to change notification settings

VintageWander/filey

Repository files navigation

Filey

Filey - a simple peer-to-peer file sharing app, used for transfering and view files, as a lightweight alternative to FTP solutions, which might require a lot of setup that some people did not want to put up the time to work with

This is the source code of my personal developed file transfering tool that I developed and used for quite some time, and now I'm publishing the code online for other people to take a look at, and can compile and use for themselves

This GitHub repo is not a 1:1 copy of the original tool that I'm currently having, there will be some issues here and there but in general the tool has minimal bugs

Tech used

  • Interface: NextJS (TypeScript)
  • Engine: Tauri(webview) + Axum(HTTP server) (Rust)
  • Database: SQLite

Known issues

  1. Currently for whatever reason, the android build does not include the capability to show image or video embedded inside the app.
    Therefore when you preview an image or an mp4 video, it will open the default browser for you to view
  2. Windows on ARM build not supported (this is tauri's issue)

Usage instructions

As for now I haven't published a release build for this application, since I don't have money for a license for now.
However you can build it for yourself. The dev version runs fine on macOS and Android, since those are the devices that I have at my disposal

Pre-requisites

You need to have Bun and Rust installed

Build

Notice the SQLX_OFFLINE=true environment variable, this is required since I use the macros feature of the sqlx crate

For macOS:

SQLX_OFFLINE=true bun tauri build --bundles dmg

For Android:

You'll have to sign the application first, or else Android WILL NOT let you install.
Follow this guide after downloading the source code

# Somehow the debug build on Android runs all features
# More explanations in the Cargo.toml file
SQLX_OFFLINE=true bun tauri android build --apk --target aarch64 --debug

For iOS:

You'll need to sign the application with your Apple Developer account, I've only tested this application in a simulator and it runs okay

SQLX_OFFLINE=true bun tauri ios build

For Windows:

Build it on a real Windows machine or a VM

X86_64:

SQLX_OFFLINE=true bun tauri build

ARM64:

Pre-requisites for building on ARM64 Windows:

  1. Install Visual Studio
  2. When the installer appear, choose Desktop development with C++, go to the Individual Components section and choose C++ Clang Compiler for Windows, and then install
  3. Add this line to the PATH section of Environment Variables C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\ARM64\bin
  4. Finally
    SQLX_OFFLINE=truenpx tauri build

The Windows on ARM build currently does not compile successful, the application compiles until this error is shown:
Unknown Scheme: cannot make HTTPS request because no TLS backend is configured.
This is actually Tauri's issue and I'm waiting for them to push out a fix

About

Filey - a simple peer-to-peer file sharing app, used for transfering and view files, as a lightweight alternative to FTP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published