Skip to content

Repository files navigation

"awacha" is a simple note web application.

You can upload and download text data on the web from the terminal.

Local development

The local server uses an in-memory note store, so Google Cloud credentials and Datastore setup are not required.

go run .

The server is available at http://localhost:8080. Notes stored locally are discarded when the process stops. On App Engine, awacha automatically uses Google Cloud Datastore instead.

Run the test suite with:

go test ./...

Usage

You can POST to any URL after slash of awacha.com/.

If POST to same URL, the saved text will be overwrite.

Example of use

  • You want to copy the configuration file to my new computer
  • You have multiple computers and want to share a (long) URL
  • You want to share text data temporarily

Note

Do not upload sensitive documents. Awacha is a note application that does not require authentication. In other words, anyone can update, view, or delete the note you created.

Example

Create note

$ curl -X POST -d "hello world" awacha.com/helloworld
> Created

You can also send a text file.

# Create a file to send in advance. (e.g., .vimrc)
$ curl -X POST --data-binary @$HOME/.vimrc awacha.com/vimrc
> Created

Get note

$ curl awacha.com/helloworld
> hello world

You can also save the file using the wget command.

$ wget awacha.com/vimrc -o .vimrc
$ cat .vimrc
> syntax on
> set fenc=utf-8
> set nobackup
> set noswapfile

Delete note

$ curl -X DELETE awacha.com/helloworld
> Deleted

Licence

MIT

Copyright

© 2019-2021 Hagi

About

simple note web application

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages