All Projects → houssem-yahiaoui → fileupload-nodejs

houssem-yahiaoui / fileupload-nodejs

Licence: other
MongoDB file upload using NodeJS and Mongo GridFS

Programming Languages

javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to fileupload-nodejs

nestjs-file-streaming
NestJS File Streaming With MongoDB
Stars: ✭ 28 (-48.15%)
Mutual labels:  mongoose, gridfs, file-upload
mongoose-gridfs
mongoose gridfs on top of new gridfs api
Stars: ✭ 79 (+46.3%)
Mutual labels:  mongoose, gridfs
Node React Ecommerce
Build ECommerce Website Like Amazon By React & Node & MongoDB
Stars: ✭ 1,080 (+1900%)
Mutual labels:  mongoose, file-upload
Pepaverse
Pepaverse is an open source social network build with nodejs, mongoDB, passportjs and socket.io
Stars: ✭ 16 (-70.37%)
Mutual labels:  mongoose
onurl
URL Shortener created w/ Next.js, TypeScript, Mongoose
Stars: ✭ 48 (-11.11%)
Mutual labels:  mongoose
mongoolia
Keep your mongoose schemas synced with Algolia
Stars: ✭ 58 (+7.41%)
Mutual labels:  mongoose
nodejs express template
🐼 source dummy Nodejs
Stars: ✭ 13 (-75.93%)
Mutual labels:  mongoose
server-next
😎 The next generation of RESTful API service and more for Mix Space, powered by @nestjs.
Stars: ✭ 43 (-20.37%)
Mutual labels:  mongoose
shopping-cart
A full-fledged package to build an e-commerce application for iOS and Android similar to Myntra/JackThreads. Available with beautiful design and necessary features along with screen for Dashboard and Mobile app. Build using React Native, Expo, React, GraphQL, Apollo Client, Node and MongoDB.
Stars: ✭ 64 (+18.52%)
Mutual labels:  mongoose
pavo
Server-side upload service for jQuery-File-Upload written in Golang
Stars: ✭ 78 (+44.44%)
Mutual labels:  file-upload
PiZilla
A lightweight, open-source file sharing web application for local networks.
Stars: ✭ 22 (-59.26%)
Mutual labels:  file-upload
form-data
Spec-compliant FormData implementation for Node.js
Stars: ✭ 73 (+35.19%)
Mutual labels:  file-upload
hiroki
create a REST api faster than ever
Stars: ✭ 13 (-75.93%)
Mutual labels:  mongoose
lolisafe
Blazing fast file uploader and awesome bunker written in node! 🚀
Stars: ✭ 181 (+235.19%)
Mutual labels:  file-upload
vue3-dropzone
HTML5 drag-drop zone with vue3
Stars: ✭ 34 (-37.04%)
Mutual labels:  file-upload
IPS-BitTracker
Bit Torrent Tracker application for IPS 4.5x Community Suite
Stars: ✭ 18 (-66.67%)
Mutual labels:  file-upload
timeoff-server
TimeOff is an application that allows companies' employees to set vacations before they begin taking their time off. Implemented in modern tech stack i.e. Node, Express, MongoDB.
Stars: ✭ 33 (-38.89%)
Mutual labels:  mongoose
files
Laravel Enso file management add-on for smoothing out some of common cases found when working with files
Stars: ✭ 15 (-72.22%)
Mutual labels:  file-upload
gasper
Gasper is a CLI for safe, privacy-aware file storage based on Shamir's Secret Sharing
Stars: ✭ 37 (-31.48%)
Mutual labels:  file-upload
login push
vue+koa2+jwt实现单点登录 + todolist增删改查
Stars: ✭ 20 (-62.96%)
Mutual labels:  mongoose

MongoDB/GridFS File upload with NodeJS.

Open Source Love Open Source Love code style: prettier

PS: This project have a JS/Es* Version and Typescript version that i will ry to keep in sync in term of integration, so for sake of clarity the DEV(this branch) will have the JS/ES* Version and ts-build Branch will have the Typescript Version.

As mouthfull as it sounds, but functional it will be, file upload is needed in any application there for this demo shows how we can upload files directly to our MongoDB using it's GridFS System.

NOTICE:

This project will be improved in near future to use the new supported version of file management in MongoDB, which is the GridFSBucket, this final support will be ported soon.

Dependencies Management :

In order to use this repository, please feel free to clone directly to your working directory and simply enter this command to your Terminal/CMD :

# yarn install

or, in case your don't dispose yarn, please use the following command:

# npm install

Launching the app :

In case you want to run the app, simply use the following command :

# npm start

Updates:

File Upload :

I've changed the upload endpoints so no in order to upload your documents you will just call for the endpoint bellow :

<localhost|server>/v1/bucket/upload

Checking Uplaoded files :

As an added endpoint, now you can view all your uploaded files using this endpoint:

<localhost|server>/v1/home

This endpoint will give you all uploaded docs within you Database in an array of object that will have the following:

    [{
        file_name: <uploaded-file-name>,
        file_id: <uploaded-file-id>,
        file_link: <auto-generated-downnload-link>
    }]
  1. file_name : The uploaded file name.
  2. file_id : An auto generated _if upon file upload over GridFS.
  3. file_link : An auto generated download link of your file for easy download.

File Download :

I've changed the download endpoints so no in order to download your documents you will just call for the endpoint bellow :

<localhost|server>/v1/bucket/download?document_id=<doc-id>

Change Log :

1 - Depedencies upgrade. 2 - Logger updates to match winston v3.3

Finally, for even more details please check this Youtube tutorial I've created that explains just that.

Link : https://youtu.be/pXHOF4GWuZQ

Collaborators :

  • Houssem Yahiaoui (@houssem-yahiaoui).

Happy Coding =D

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].