Simple Node.js image pastebin built with express, MongoDB, hbs and Multer.
Try it out at paste-pic-pro.onrender.com/
- Clean code thanks to ES6 async/await and Express
- Short URLs via shortid, e.g.
09ofATmOD
- Full support for All Images with sharp etc
- Automatic and configurable paste expiry
- Simple and responsive UI built with hbs & Css
- Clone this repo:
git clone https://github.com/alin00r/Paste-Pic && cd Paste-Pic
- Install dependencies:
npm install
-
Configure Environment Variables:
-
Create a
.env
File: In the root directory of the app, create a file named.env
. -
Add the Following Environment Variables: Replace the placeholders with your actual information. You might need to sign up for accounts and services to obtain the required credentials.
# MongoDB Configuration MONGO_URI=your-mongodb-database-url
-
-
Start app and Try it:
npm run dev