Snoop is a CLI tool created with golang using cobra, which helps in transfering files among devices that are connected to the same network.
To set up the project for local development, follow these steps:
-
Clone the repository:
git clone https://github.com/deepraj02/snoop.git cd snoop
-
Install dependencies: Ensure you have Go installed. Then, run:
go mod download
-
Build the project:
make build
-
Run the project:
make run
Note: Working on releasing the binary directly to package repos like Choco (windows), apt-get (Linux), as of now for these platform you can download the zip/tar.gz files.
For a step-by-step installation process for all OS, refer to INSTALLATION.md.
-
Navigate to the directory you want to share:
cd /path/to/your/directory
-
Start the server:
snoop serve
By default, the server will start on port 8080. You can specify a different port using the
-p
or--port
flag:snoop serve -p 9090
-
Access the server: Open your web browser and navigate to http://your-local-ip:8080 (or the port you specified).
-
Download files: Click on the file links to download them.