2021-05-18 00:57:53 -04:00
2021-05-18 00:57:53 -04:00
2021-05-18 00:57:53 -04:00
2021-05-17 20:33:08 -04:00
2021-05-17 23:36:57 -04:00
2021-05-17 23:36:57 -04:00
2021-05-17 20:33:08 -04:00
2021-05-16 20:37:57 -04:00

storyteller-web

This is our main user account monolith that we'll also bake other pieces into.

Local development

Database migrations

To reset the entire database (drop, migrate), run:

diesel database reset

To migrate at the current step and beyond:

diesel migration run

To undo migrations at the current step:

diesel migration redo

Actix notes

json request

async fn handler(request: web::Json<Mytype>) -> impl Responder { "whatever" }

form-multipart request

async fn handler(request: web::Form<Mytype>) -> impl Responder { "whatever" }

route parameters

#[get("/{name}")]
async fn hello(name: web::Path<String>) -> impl Responder { format!("Hi {}", name) }

TODO

  • Make all "token" types correct
  • Use correct collation for all tables
  • Install indexes on all foreign keys
  • Make sure unique indexes are correct

Notes / TODOs:

S
Description
backend, web frontend, etc.
Readme
1.3 GiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 66.3%
TypeScript 32.4%
Python 0.4%
JavaScript 0.3%
CSS 0.2%
Other 0.2%