Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arve0/actix_crud
create, read, update, delete with actix-web, SQLite and svelte
https://github.com/arve0/actix_crud
Last synced: 8 days ago
JSON representation
create, read, update, delete with actix-web, SQLite and svelte
- Host: GitHub
- URL: https://github.com/arve0/actix_crud
- Owner: arve0
- Created: 2019-06-21T12:57:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T19:29:37.000Z (almost 2 years ago)
- Last Synced: 2024-04-11T07:27:25.592Z (7 months ago)
- Language: Rust
- Homepage: https://actix-crud.seljebu.no
- Size: 1.16 MB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# actix crud
An implementation of create, read, update and delete over HTTP with [actix-web](https://actix.rs), [SQLite](https://www.sqlite.org) and [svelte](https://svelte.dev). Live updates via [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events), also known as EventSource.![](actix_crud_web_client.png)
## What is this good for?
Making user oriented crud-applications with cross-client live updates.## Running
```sh
# 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](./client/public/index.html),
static files are served from [client/public/static](./client/public/static).See [test.sh](test.sh) or [the client implementation](./client) for how to:
- register users
- login
- CRUD-ing documents## Development
```sh
# 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](./client/README.md).