https://github.com/jeevanbabu7/file-uploader
File uploader and get sharable link
https://github.com/jeevanbabu7/file-uploader
Last synced: about 1 year ago
JSON representation
File uploader and get sharable link
- Host: GitHub
- URL: https://github.com/jeevanbabu7/file-uploader
- Owner: jeevanbabu7
- Created: 2024-08-03T15:06:12.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-03T20:00:04.000Z (almost 2 years ago)
- Last Synced: 2025-01-07T17:41:10.574Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://file-uploader-chi-seven.vercel.app
- Size: 4.47 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# File Uploader
A simple and efficient file uploader application built with TypeScript, React, Tailwind CSS, and Firebase. This application allows users to upload any type of file and generates a sharable link that can be used to access the file.
## Features
- **File Upload:** Users can upload any file type.
- **Sharable Link:** After uploading, a unique URL is generated for each file, allowing easy sharing.
- **Firebase Storage:** Files are securely stored using Firebase, ensuring scalability and reliability.
## Tech Stack
- **TypeScript**
- **React**
- **Tailwind CSS**
- **Firebase**
## Installation
1. Clone the repository:
git clone [https://github.com/jeevanbabu7/file-uploader.git](https://github.com/jeevanbabu7/file-uploader.git)
cd file-uploader
3. Install dependencies:
npm install
4. Set up Firebase:
Create a Firebase project in the Firebase Console.
Enable Firebase Storage.
Copy the Firebase config object from your Firebase project settings and paste it in firebase.js
5. Start the development server:
npm start
The app will be available at http://localhost:3000.
# React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
## Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level `parserOptions` property like this:
```js
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: __dirname,
},
}
```
- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list