ShareFiles is a simple file share utility that you can deploy on your own server by running few commands.
ShareFiles creates link to the files to be shared which makes it absolutely simple to share files.
Nodejs
Express
MongoDB
EJS (Embedded JavaScript)
You can use this application when you want to share photos or any types of files with your friends HASSLE-FREE.
- You can upload any number of files you want with no limit on size of the files. You will get the ID in the response of the object with which you can review and download the files.
- You can only access the files only if you have MongoDB ObjectID.
- Previously uploaded file's links are stored in localstorage and can be viewed in the saved page.
- You can share the link with people you want to share the files with.
-
Setup
Nodejs
-
Install
MongoDB locally (or) use MongoDB Atlas
-
Setup
.env
file in this project folder with following propertiesa. DB_URL= < your-mongo-db-url >
-
Run this project using
npm start
│ .env
│ .gitignore
│ app.js
│ package-lock.json
│ package.json
│ README.md
│
├───models
│ files.js
│
├───public
│ icon.png
│ style.css
│ download.css
│ script.js
│ downloadscript.js
│ savedscript.js
│
├───uploads
│ <Uploaded files on the server>
│
└───views
download.ejs
home.ejs
notfound.ejs
saved.ejs