Uploader is a simple file upload service based on Hussein Nasser's Building an upload backend service with No libraries, No forms, just vanilla JS with progress with some additional changes added to understand the concept behind file uploading process. As of now this will support only single image file but this can be later modified to support more file type. The selected file is sent to the server as chunks and later the file is pushed to cloudinary.
Clone the project uploader
Move to uploader directory.
cd uploader
Install dependencies
npm install
Setup environment varibles
cp .env.sample .env
, and modify as required. You need a cloudinary account and its api credentials to push the image to cloudinary. Create a cloudinary account.
Run uploader
npm start or npm run dev
uploader will be running at
localhost: PORT