Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bieanimaton/image-uploader-nodejs-mongodb
Code that send and receive images from MongoDB by NodeJs
https://github.com/bieanimaton/image-uploader-nodejs-mongodb
ejs galeria image-uploader mongodb mongoose multer nodejs routes
Last synced: about 3 hours ago
JSON representation
Code that send and receive images from MongoDB by NodeJs
- Host: GitHub
- URL: https://github.com/bieanimaton/image-uploader-nodejs-mongodb
- Owner: BieAnimaton
- Created: 2020-10-17T11:56:37.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-01T23:09:05.000Z (about 4 years ago)
- Last Synced: 2024-06-18T14:31:32.620Z (5 months ago)
- Topics: ejs, galeria, image-uploader, mongodb, mongoose, multer, nodejs, routes
- Language: JavaScript
- Homepage:
- Size: 454 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image-Uploader-Nodejs-MongoDB
## Original project by rishabhjain21, on "www.geeksforgeeks.org" (step-by-step link below) :point_up:
- https://www.geeksforgeeks.org/upload-and-retrieve-image-on-mongodb-using-mongoose/This is project to send and receive images from MongoDB using NodeJs (Multer, Mongoose, Express, Ejs, path, fs...).
## Image
![image-uploader](https://user-images.githubusercontent.com/52220244/97816936-f5798580-1c77-11eb-9b29-f5d125960d93.gif)## How Install :bookmark_tabs:
```
# Create folder for store the files, like 'image-uploader'# Clone the project
git clone https://github.com/BieAnimaton/Image-Uploader-NodeJs-MongoDB# Install the dependencies
npm install
or
yarn install# To start
npm start
or
yarn start# The server will start in port 3000
# Access http://localhost:3000
```## Change the database :pushpin:
For connect to your MongoDB database, create ".env" file in project root and write: " MONGO_URL='mongodb+srv://user:[email protected]/galeria?retryWrites=true&w=majority' ".## Alter tables :file_folder:
If you want add more params in your MongoDB table, change the file "galeria.js" and modify the "imgSchema", thereafter, complete with same params in "rotas.js", on part called "rotas.post()".## Features :hammer_and_wrench:
- Node Js
- Express
- Mongoose
- Multer
- Ejs
- Nodemon (development only)