An Ali Express version of privnote
- Experiment with rocket
- Learn some rust
- Have some fun
- Create a simple web service that can:
- create private notes with limited uses
- fetch notes via url
- Deployment on actual prod environment
- Encrypt notes on creation
- Password protect notes
- Add auto-expire to notes
- Add usage counter to notes
- Add unique urls to notes
- Install rust. Easily done via rustup
- Clone Project
cd scuffed-note && cargo run
🚀 Rocket has launched from http://127.0.0.1:8000
To create notes, fire up a POST request to localhost:8000/notes
with the following JSON body:
{
"contents": "my super secret note",
"uses": 1
}
Which will give you back a JSON response with the URL at which you can fetch it:
{
"url": "http://localhost:8000/notes/uDxj46z2AhON9ev2"
}