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
-
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.