Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dnmore/mongodb-gallery
Application with authentication logic built using Node.js and MongoDB database
https://github.com/dnmore/mongodb-gallery
authentication bcryptjs expressjs mongodb multer-fileupload nodejs session-cookie
Last synced: about 5 hours ago
JSON representation
Application with authentication logic built using Node.js and MongoDB database
- Host: GitHub
- URL: https://github.com/dnmore/mongodb-gallery
- Owner: dnmore
- Created: 2024-04-16T09:56:32.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-09-17T09:10:15.000Z (2 months ago)
- Last Synced: 2024-09-17T11:38:34.605Z (2 months ago)
- Topics: authentication, bcryptjs, expressjs, mongodb, multer-fileupload, nodejs, session-cookie
- Language: JavaScript
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MongoDB Gallery - Image Upload and Profile Management
## Overview
Application with authentication logic built using Node.js and MongoDB database which allows upon authentication to access a profile page and upload an image file to be displayed on home page.
## 🔥 Features
- Secure user authentication and session management
- Image uploads with previews## 🛠️ Tech Stack
- `Node.js`– Backend runtime
- `Express.js`– Web framework for Node.js
- `EJS`– Templating engine for rendering dynamic content
- `MongoDB`– NoSQL database for storing data
- `Nodemon` – Automatically restarts the server on file changes
- `Bcryptjs` – Password hashing
- `Multer`– Middleware for handling file uploads
- `Express-Session`– Session management
- `UUID` – Unique identifier generation
- `Dotenv` – Environment variable management## 🚀 Getting Started
### Installation
Clone the repository and install the dependencies:```
$ git clone https://github.com/dnmore/mongodb-gallery.git
$ npm install```
### Database Setup
Create a MongoDB database named `gallery`:
```
use gallery```
### Environment Variables
Set up environment variables for the session secret in a `.env` file.### Running the Application
To start the server, run:```
$ npm start```
The application will be running at `http://localhost:3000/`.
## 📜 License
This project is licensed under the MIT License.