465 Commits

Author SHA1 Message Date
e9bcd23347 Add BookView endpoint and refactor pages 2022-01-03 06:27:25 -08:00
afd90f8fbf Improve content and handling on OrderPage 2022-01-03 04:11:33 -08:00
d037506138 Handle auth and welcome back for existing users 2022-01-03 01:06:51 -08:00
80e0ca46fb add login/logout, validates 1 order max, delete method for user 2022-01-02 17:38:48 -08:00
790e96cc1b Improve user generator UX. Still a bit buggy. 2022-01-02 14:31:19 -08:00
f4644836d3 Connect UserGenPage to API. Base 32 string seems to pass quality checks, shorter do not. 2022-01-02 10:27:40 -08:00
354e7fc5c7 Create user generation API
Endpoint request contains a token. Server checks whether it has enough entropy to be secure (at least 128 bits and >0.7 shannon heterogeneity). Server hashes the token (once as of now) and derives nickname and robohash avatar (goes into static/assets/avatars). Nickname is limited to only adjectives, nouns and 3 digits, restricted to 18 characters long max. The corpus of nicknames is 20 billion big (maybe not enough? nick collision chance can happen, but server will just reply with 400 unless the token matches perfectly too)
2022-01-02 09:15:09 -08:00
f0ac03e519 Add nick generator and robohash avatar generator 2022-01-02 07:19:49 -08:00
c71d95ccd0 Rename boolean explicit for is_explicit/isExplicit 2022-01-02 05:38:45 -08:00
c4b625a993 Fix order detail page view. Add explicit to model as pricing method boolean explicit/relative 2022-01-02 05:24:35 -08:00
298efc394b Create order detail API endpoint, create order page. Not fully working yet 2022-01-02 04:59:48 -08:00
e087d0b686 Add payment method field 2022-01-02 01:40:19 -08:00
44ddaef23b Fix order view arguments 2022-01-01 15:06:47 -08:00
76a45bc8d5 Create API endpoint for POST make order
Added the Order model with a rough approxiation to the fields needed. The field status can be read lineally as the progression trough the app pipeline. The view serves POSTs requests to enter new orders into the db.
2022-01-01 14:40:08 -08:00
6b8b8c4511 Create api django app 2022-01-01 14:13:27 -08:00