The FileShare App is a fast and secure file-sharing platform that allows users to upload files up to 25 MB. Once a file is uploaded, a unique 4-digit code is generated, enabling anyone with the code to download the file from anywhere. The file remains available for up to 4 hours, and users can adjust the expiration time to fit their needs. Whether you're sending important documents or media files, FileShare makes it easy to share without the hassle of complex processes.
- React.js: For building the user interface.
- Node.js: For server-side logic.
- Tailwind CSS: For styling the application.
Clone the repository using the following command:
git clone https://github.com/vardhan-ganugula/fileshare.gitNavigate to both the frontend and backend directories and install the required packages:
cd fileshare/frontend
npm install
cd ../backend
npm install
Before running the application, make sure you have set up the .env file correctly.
Add the backend url
VITE_BACKEND_URL=http://localhost:8000/
Add the MongoDB URI string, port number, and expiry time in milliseconds:
MONGO_URI=mongouristring
PORT=8000
EXPIRY_TIME=14400000 #4hours
- React Icons: For using icons in the application.
- React Toastify: For displaying toast notifications.
- Axios: For making HTTP requests.
-
Nodemon: For automatically restarting the server during development
-
Mongoose: For MongoDB object modeling.
-
Cors: For enabling Cross-Origin Resource Sharing.
-
Multer: For handling file uploads.
-
Path: For working with file and directory paths.
-
Dotenv: For loading environment variables from a .env file.
-
Express: For building the server.
To start the application, follow these steps:
- Navigate to the backend directory and run the following command to start the backend server:
npm start
- Navigate to the frontend directory:
cd frontend
- For build and deployment:
npm run build
For development:
npm run dev