"awacha" is a simple note web application.
You can upload and download text data on the web from the terminal.
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 ./...You can POST to any URL after slash of awacha.com/.
If POST to same URL, the saved text will be overwrite.
- 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
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.
$ curl -X POST -d "hello world" awacha.com/helloworld
> CreatedYou 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$ curl awacha.com/helloworld
> hello worldYou 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$ curl -X DELETE awacha.com/helloworld
> Deleted© 2019-2021 Hagi