A file sharing web application built using Vite, React, Node.js, Express, Multer, and MongoDB. Users can upload files of any type, receive a unique link for each upload, and share this link with others for downloading files securely.
- File Upload: Upload files of any type through a user-friendly interface.
- Unique Links: Each uploaded file gets a unique link that can be shared for downloading.
- Secure Access: Files are accessible only through the generated links.
- MongoDB Storage: Files and link metadata are stored in MongoDB for persistence.
- Responsive Design: User interface is responsive and works well on different devices.
You can try the live demo of the application here.
- Frontend: Vite for fast development and React.js for building the user interface.
- Backend: Node.js and Express.js for server-side logic and API.
- File Handling: Multer middleware for handling file uploads.
- Database: MongoDB for storing file metadata and links.
To run the project locally, follow these steps:
- Clone the repository:
git clone https://github.com/tauqueeralam42/file-sharing-mern.git
- Navigate to the project directory:
cd file-sharing-mern - Install dependencies for both frontend and backend:
cd frontend npm install cd ../backend npm install
- Configure MongoDB:
- Ensure MongoDB is installed and running locally or provide a MongoDB URI.
- Update the MongoDB URI in the backend configuration files if necessary.
- Start the server:
cd ../backend npm start - Start the frontend:
cd ../frontend npm start - Open your browser and visit http://localhost:5173 to view the application.
- Upload a file using the provided interface.
- Once uploaded, copy the generated link and share it with others.
- Recipients can download the file using the shared link.
Contributions are welcome! Please open an issue or submit a pull request for any changes.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature-branch). - Open a pull request.
For any questions or suggestions, feel free to reach out.
- GitHub: tauqueeralam42
- Email: tauqueeralam42@gmail.com.com