Commit graph

15 commits

Author SHA1 Message Date
LukeMathWalker
2ac9ccbe97 Red test (confirmation link). 2021-03-08 22:10:23 +00:00
LukeMathWalker
d5e09e849b Update to tokio 1. 2021-02-11 09:23:13 +00:00
LukeMathWalker
3145991669 Happy case test. 2021-01-16 23:01:08 +00:00
LukeMathWalker
e71aaeb3ce Remove reqwest from dev dependency list. 2021-01-16 14:37:57 +00:00
LukeMathWalker
72725c5306 Add reqwest as dependency 2021-01-11 08:32:27 +00:00
LukeMathWalker
95061149da Use at most 2.3 of fake to get rand 0.7. 2021-01-03 18:13:45 +00:00
LukeMathWalker
9dd9aaffd6 Use TryInto. 2020-12-29 10:00:11 +00:00
LukeMathWalker
f6d62fb7a1 Add email validation. 2020-12-28 12:26:05 +00:00
Luca Palmieri
9dd3b0590a Return 400 on bad names. 2020-12-11 15:50:09 +00:00
Luca Palmieri
0eaf310f29 Add SubscriberName constructor. 2020-12-09 17:20:15 +00:00
Luca Palmieri
847bb8152a Update CI + update sqlx 2020-12-05 19:10:01 +00:00
Luca Palmieri
bfbbf96c41 Chapter 05 (snapshot) 2020-12-05 17:07:31 +00:00
Luca Palmieri
0a4addc6bb
Chapter 5 (#13)
* Add chapter 5

* Basic deployment stuff

* Fix Dockerfile.

* Add an explicit connection timeout.

* Align port with configuration.

* Use debug for faster feedback loops.

* Add address configuration.

* Provision database.

* Use structured options.

* Add configuration

* Fix typo.

* Customise deserialization logic.

* Change to Require.

* Fix spec.

* Add a few more things to the dockerignore file.

* Update to match chapter.

* Add base configuration.

* Amend configuratiohn.

Co-authored-by: LukeMathWalker <rust@lpalmieri.com>
2020-11-01 21:25:11 +00:00
Luca Palmieri
3e553eaf60
Chapter04 (#9)
* Add chapter 4 code.

* Add logger middleware.

* Add env_logger.

* Instrumented.

* Test logs.

* Introduce instrument.

* Refactor handler.

* Use TracingLogger.

* Update.

* Fix linter error.
2020-09-27 17:09:42 +01:00
LukeMathWalker
7e63ca87bd Scaffolding 2020-08-23 11:34:29 +01:00