Skip to content

alin00r/Paste-Pic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paste-Picture

License Release Version

Simple Node.js image pastebin built with express, MongoDB, hbs and Multer.

Try it out at paste-pic-pro.onrender.com/

Features

  • 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

Development

  1. Clone this repo:
git clone https://github.com/alin00r/Paste-Pic && cd Paste-Pic
  1. Install dependencies:
npm install
  1. Configure Environment Variables:

    1. Create a .env File: In the root directory of the app, create a file named .env.

    2. 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
    
  2. Start app and Try it:

npm run dev