Version 4 of the copypaste tool for personal notes, etc.
- MongoDB
- Express.js
- Node.js
- Ubuntu
- Ansible
- Install Ansible, if not yet installed:
sudo add-apt-repository ppa:ansible/ansible && sudo apt update && sudo apt install ansible
git clone https://github.com/Torniojaws/paste4.git
cd paste4/
- Run
make
to deploy the project (using Ansible, see: deployment) - Once the deployment is ready, start the project with
npm start
- Then browse to: http://localhost:3000/
Do not update mongoose
to version between 5.5.0 and 5.6.4. It breaks in Travis CI.
Version 5.4.23 is the newest one that works.
For testing, Mocha and Chai are used. You can run the tests with npm test
If you want to check the DB manually, use: mongo --host 127.0.0.1:27017