/media-upload-node-mongo

How to upload images in mongoDB using node js

Primary LanguageJavaScript

Images Uploading in MongoDB using Nodejs


Requirements

For development, you will only need Node.js and a node global package, installed in your environement.

Node

  • Node installation on Windows

    Just go on official Node.js website and download the installer. Also, be sure to have git available in your PATH, npm might need it (You can find git here).

  • Node installation on Ubuntu

    You can install nodejs and npm easily with apt install, just run the following commands.

    $ sudo apt install nodejs
    $ sudo apt install npm
    

If the installation was successful, you should be able to run the following command.

$ node --version
v16.17.1

$ npm --version
8.15.0

Install

$ git clone https://github.com/ritul-mtalkz/media-upload-node-mongo
$ cd media-upload-node-mongo
$ npm install

Run the project

$ npm run dev