Skip to content

peer to peer file transfer. support file sharing through ssh, scp and the web

Notifications You must be signed in to change notification settings

blazingh/beampaw

Repository files navigation

Logo

Beam Paw

Peer to Peer file transfer
Report bug | Request feature

Table of content

Quick usage guide

Send a file

ssh beampaw.xyz < file.txt

Send a file with a specific name

ssh beampaw.xyz name=myfile.txt < file.txt

Send a folder

1 - zip the folder

zip -r temp.zip myfolder/

learn more about zip command usage

2 - sent the zip file with a .zip file extension

ssh beampaw.xyz name=myfolder.zip < temp.zip

Run Localy

1 - clone the repo and cd into the directory

git clone https://github.com/blazingh/beampaw
cd beampaw

you can run make help to see some quick helpful commands

2 - copy the example .env file and generate an ssh key file

cp example.env .env
ssh-keygen -t rsa -b 4096 -f id_rsa -q -N ''

3 - dowload npm dependicies and run tailwindcss build

npm install
npx tailwindcss -i ./styles.css -o ./public/index.css --minify

4 - start the project

go run main.go

you can also use make run or make run/watch to run the project


note : if you want to develop the web front-end make sure to also run npx tailwindcss -i ./styles.css -o ./public/index.css --minify or make tailwind-watch


Self Host

I'll add a guide when I figure it out 🙃