Simple Node.js image pastebin built with Koa, MongoDB, Pug and Bootstrap.
Try it out at paste.pictures
- Clean code thanks to ES7 async/await and Koa
- Short URLs via shortid, e.g.
NyQO9puMe
- Full support for CLI requests with curl etc
- Automatic and configurable paste expiry
- Runs fully containerized with Docker
- Simple and responsive UI built with Bootstrap
- Clone this repo:
git clone https://github.com/JoeBiellik/picturepaste.git && cd picturepaste
- Install dependencies:
npm install
- Start MongoDB:
docker-compose up -d db
- Start app and watch for changes:
npm run watch
-
Configure
config/docker.json
with any custom settings -
Start the production database and Node.js server:
docker-compose up