Giter Club home page Giter Club logo

jottle's Introduction

jottle

jot + bottle

jot, v. To write briefly, quickly or perhaps even hastily.

bottle, n. A glass or plastic container with a narrow neck, used for storing drinks or other liquids. An umbrella term for a variety of such things, including a Flask.

Jottle is a BROWSE app written with Flask. It allows the user to keep and edit text files on a server.

I often find myself needing to write text or code with a computer, usually running Windows, that does not have vim. One way of overcoming this is ssh-ing into my phone and using vim from there. However, all too often, the computer I am using does not have putty installed and getting all the keys and things set up is a bit of a chore, especially if I only want to make a quick note of something. I could just make do with a basic text editor like notepad. I could even just use Google Docs, but I generally prefer to keep my files with me and use other, perhaps cloud based, back up solutions if necessary.

Jottle is my solution to this pretty specific need. It runs on my android phone in termux on top of nginx and gunicorn. So all I need do is open a web browser, point it at my phone and now I can refer to notes stored on my phone and edit them using the ace editor set up to emulate vim.

It's portable vim in my pocket for when I can't ssh and don't want to upload stuff to someone else's server.

usage

Once the flask app is running, simply point a browser at its address.

dependencies

python 3.6.1 flask 0.12.2 markdown 1.7

installation

Before jottle will function corrently, config.py must be set up. It contains three properties:

root        the path to the folder in which you'd like jottle to store files
key         a key stored as a cookie on any computers authenticated to use jottle
passhash    a hashed password

root will usually point at the 'root' folder inside the jottle directory, but that's not necessary. key can be anything you like, a random uuid works well. To generate a passhass, you can run hashpassword.py.

Once config.py is ready, deploy jottle as a flask app and you're done. It should work with whichever web server software but is currently only tested with termux + nginx + gunicorn, since that's how I built it to be used.

license

GPLv3

jottle's People

Stargazers

Xiao Zhang avatar Basil Hayek avatar Francisco avatar Calvin Gu avatar Kevin Yohe avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.