https://github.com/andreapavoni/simple_counter
Simple counter experiment made with Rust, Axum, SeaORM, Askama templates and HTMx
https://github.com/andreapavoni/simple_counter
Last synced: about 1 year ago
JSON representation
Simple counter experiment made with Rust, Axum, SeaORM, Askama templates and HTMx
- Host: GitHub
- URL: https://github.com/andreapavoni/simple_counter
- Owner: andreapavoni
- Created: 2023-09-07T16:45:23.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-20T07:59:22.000Z (almost 3 years ago)
- Last Synced: 2025-02-12T22:19:37.788Z (over 1 year ago)
- Language: Rust
- Size: 49.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Counter
Simple very app to manage counters.
* [Axum](https://github.com/tokio-rs/axum)
* [Askama](https://github.com/djc/askama) + some [HTMx](https://htmx.org)
* [SeaORM](https://www.sea-ql.org/SeaORM/)
* an experimental library to implement a CQRS/ES pattern: [mini_cqrs](https://github.com/andreapavoni/mini_cqrs).
It is clearly overkill for a simple application like this, indeed I'm using it for practicing and experimenting.
## Usage
* clone this repo: `git clone https://github.com/andreapavoni/simple_counter.git`
* create a SQLite database file (using `touch db.sqlite3` works as well)
* copy `.env.example` to `.env` and edit it accordingly
* compile assets: `cd web/ && pnpm release`
* run: `APP_ENV=prod cargo run --release`
* open: `http://localhost:8000/counters`
## Status
**Work In Progress**
It's a fun experiment/PoC/exercise, but definitely not appropriated for any production use (FWIW). I'm thinking about making it production-approachable to keep as an example but I don't have any clear plans or deadlines.