Peer Share is a file sharing app that uses peer-to-peer (P2P) communication. The connection is initiated via a signaling server that handles the initial socket connections. Once connected, peers can communicate directly without further server intervention. The files are not saved at any server, rather they are directly shared between the peers.
- File Sharing: Seamlessly share files between two users.
- WebRTC Integration: Leverages WebRTC for peer-to-peer connections.
- Socket Server: Uses a socket server for signaling to establish connections.
- HTTPS Support: Runs on HTTPS for secure communication.
- Clone repo and install dependencies inside server and client directory.
cd server
npm install
npm run dev
cd client
npm install
npm run dev
- Please note that the client will only be accessible at https i.e. https://localhost:5173/
The frontend uses vite-plugin-mkcert to enable HTTPS. This ensures that all communications are secure. Make sure to trust the generated certificates in your development environment.