A lightweight pastebin/hastebin alternative with no hard frontend JS dependency. Fork of mkr/bin.
Starting the app
You know the drill:
git clone https://github.com/mojurasu/memocho cd bin npm install
Start the app with the ENV variables:
BIN_MONGO_CSTRING: your Mongo connection string.
BIN_PORT: port on which
binshould listen to.
BIN_MONGO_CSTRING=mongodb://localhost:27017/bin-store \ BIN_PORT=4000 \ npm start
Running in Docker
Memochō supports running inside Docker through the provided Dockerfile. To build the image:
docker build -t mojurasu/memocho:latest --build-arg PORT=4000 --build-arg MONGO_CSTRING=mongodb://localhost:27017/bin-store .
Then run it as you would any other image:
docker run mojurasu/memocho:latest
To customise your self-hosted version of
Memochō, you can add these two files to
/custom at the root directory:
└─ custom ├─ style.css └─ addon.js
mkr/bin also sends nothing back to my server except the data you want to store. I don't process or store anything else on the server. Settings such as toggling the sidebar is stored on the clientside, so if you clear or if you don't persist your localStorage, you'll see that the sidebar will reappear every time you reload. I will not also accept any PR that creates hard JS dependency for the client. Cheers!