A small application written in Node/Express on the server and vanilla javascript on the client. It allows you to send encrypted one-time-use messages to someone via unique URL's that are generated on the server - once someone views the note, the note is destroyed.
There is also a public API that you can use if you would like to integrate it into your own applications.
Public URL: https://hushnote.herokuapp.com
Headers: Content/Type = application/json
Body: {"note": "this is a test message"}
------------------------------------------
Success Response:
{
"url": "https://hushnote.herokuapp.com/read/40312d32/160586e0",
"error": null
}
Success Response:
{
"note": "this is a test message",
"message": "Note has been destroyed."
}
Note Not Found Response:
{
"note": null,
"message": "Could not find note, perhaps it has already been destroyed?"
}
Incorrect Pass Response:
{
"note": null,
"message": "Incorrect URL parameters. Note has been destroyed."
}
-
Check out the project by cloning it
git clone https://github.com/joshterrill/hushnote
and thencd hushnote/
-
Install dependencies by typing
npm install
-
Rename the
.env.example
file to be.env
by typingmv .env.example .env
-
Add your mongodb URL and secret passphrase to the
.env
file -
Type
npm start
to run