https://github.com/payload/zero2prod
Reading https://www.zero2prod.com
https://github.com/payload/zero2prod
Last synced: 2 months ago
JSON representation
Reading https://www.zero2prod.com
- Host: GitHub
- URL: https://github.com/payload/zero2prod
- Owner: payload
- Created: 2022-05-23T07:16:09.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-19T17:48:28.000Z (almost 3 years ago)
- Last Synced: 2025-02-10T09:11:47.188Z (4 months ago)
- Language: Rust
- Size: 50.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to handle
* run a postgres, maybe from docker UI
* use `cargo test` to check if its compiling and running
* use `cargo run | bunyan -o short` to actually run it and have readable logs
* run requests with curl:
```bash
while sleep 3; do curl -X POST 'http://127.0.0.1:3000/subscriptions' -d 'name=DenverCoder9&email=funny%40valen.tine' --verbose; done
```# Ideas for future
## UUIDs are difficult to read
* I found out about [ulid](https://github.com/ulid/spec) as an UUID alternative and want to use that probably.
But I may want to read about IDs in Postgresql too.
There are also [new UUID versions](https://uuid6.github.io/uuid6-ietf-draft/) floating around.