Skip to content

arve0/actix_crud

Repository files navigation

actix crud

An implementation of create, read, update and delete over HTTP with actix-web, SQLite and svelte. Live updates via server-sent events, also known as EventSource.

What is this good for?

Making user oriented crud-applications with cross-client live updates.

Running

# start server
cargo run --release
# in another terminal
curl localhost:8080
# or open browser
open http://localhost:8080

Index is served from client/public/index.html, static files are served from client/public/static.

See test.sh or the client implementation for how to:

  • register users
  • login
  • CRUD-ing documents

Development

# install cargo-watch if not present
cargo install cargo watch
# start server, compile and restart on changes to files
cargo watch -w src -x run
# run tests in another terminal
./test.sh

Client development

See client README.

About

create, read, update, delete with actix-web, SQLite and svelte

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published