mirror of https://github.com/JoeBiellik/paste
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55c572c9a9 | 9 years ago | |
---|---|---|
config | 9 years ago | |
controllers | 9 years ago | |
models | 9 years ago | |
public | 9 years ago | |
views | 9 years ago | |
.editorconfig | 9 years ago | |
.eslintignore | 9 years ago | |
.eslintrc | 9 years ago | |
.gitattributes | 9 years ago | |
.gitignore | 9 years ago | |
LICENSE.md | 9 years ago | |
README.md | 9 years ago | |
Vagrantfile | 9 years ago | |
app.js | 9 years ago | |
db.js | 9 years ago | |
docker-compose.yml | 9 years ago | |
package.json | 9 years ago | |
production.yml | 9 years ago | |
router.js | 9 years ago | |
server.js | 9 years ago |
README.md
paste
Simple Node.js pastebin built with Koa, MongoDB, Jade, Bootstrap 4 and Prism.js.
Try it out at paste.fyi
Features
- Clean code thanks to ES7 async/await, Koa and Babel
- Full syntax highlighting via Prism.js
- 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 and Vagrant
- Simple and responsive UI built with Bootstrap 4
Development
- Clone this repo:
git clone https://github.com/JoeBiellik/paste.git && cd paste
- Start the virtual machine and connect:
vagrant up
vagrant ssh
- Install dependencies:
npm install
- Start MongoDB:
docker-compose up -d
- Start app and watch for changes:
npm run watch
Deployment
-
Configure
config/docker.json
with any custom settings -
Start the production database and Node.js server:
docker-compose -f production.yml up -d