Are you tired of the hassle of emailing files from your phone to your desktop? Say goodbye to that inconvenience because StoreSafe is here to solve your problem! Using this simple web application, users can upload files to a remote server(on a local machine) and then download these files from the internet on any device or edit the list of your uploaded files simply by using the StoreSafe web-application.
- React: A JavaScript library used to create user interfaces.
- Express: Node.js web application framework.
- Multer: Node.js middleware for processing file uploads.
- Axios: Promise-based HTTP client for making browser or Node.js queries.
- React Bootstrap: A React UI component library.
- CSS: Application-specific styling.
- File Upload: Browse your PC for a file and upload it to the server.
- File List: Browse through the list of uploaded files and decide whether to download or delete them.
- File Download: Obtain a copy of any uploaded file from the server.
- File Removal: Delete any files that have been uploaded to the server.
git clone https://github.com/Aaniranjan-Saraf/StoreSafe.git
cd StoreSafe
npm install
- open the react app
cd my-app
- deploy server
npm start
- 'POST /upload': Take care of file upload. A file in the request body is expected.
- 'GET /download/:filename': Download a specific file by specifying it as an argument.
- 'GET /files': Get a list of all uploaded files.
- 'DELETE /remove/:filename': Delete a specific file by passing in the filename as an argument.
- The server listens on port 8080 by default. Adjust the port number in the 'server.js' file as needed.
- deploy backend server:
cd StoreSafe/
node server
- Using Serveo, make the server public:
- Type in your terminal:
ssh -R safestore:80:localhost:8080 serveo.net
- Expose the web app running on port 3000 using ngrok:
- install ngrok.
- Type in the terminal
ngrok http 3000
ngrok generates a temporary public URL that redirects inquiries to your local development server.