71 lines
1.3 KiB
Markdown
71 lines
1.3 KiB
Markdown
# Ledger
|
|
|
|
## Development
|
|
|
|
### Building locally
|
|
|
|
```shell
|
|
nix build
|
|
```
|
|
|
|
### Building dev environment
|
|
|
|
#### For IDE
|
|
|
|
```shell
|
|
nix build .#development-environment
|
|
```
|
|
|
|
Then, in IntelliJ use `result/bin`
|
|
|
|
The rust source must be `/nix/store/pmih7jv9r5xfaif92bza8w05876qvnvc-rust-src/` or similar.
|
|
|
|
#### For development shell
|
|
|
|
```shell
|
|
nix develop
|
|
```
|
|
|
|
#### Init Postgres
|
|
|
|
```shell
|
|
|
|
```
|
|
|
|
## Technologies
|
|
|
|
### Front-end
|
|
|
|
* htmx
|
|
* https://dc-js.github.io/dc.js/
|
|
* https://dygraphs.com/
|
|
* https://github.com/aftertheflood/sparks
|
|
|
|
## Todos
|
|
|
|
#### Architecture
|
|
|
|
* [x] put all the resources (migrations, templates and statics) into a resources directory
|
|
|
|
#### Bugs ?
|
|
|
|
* [ ] Currently, security emitter can "destroy" securities
|
|
from any wallet by deposing a positive amount. Is that bad?
|
|
|
|
#### Backend
|
|
|
|
* [ ] Parametrize `CURRENT_TIMESTAMP`
|
|
* [ ] Make certain the user that creates the event is allowed to do it.
|
|
* [ ] Add interest rates to currency accounts
|
|
* [ ] Add market cap table to be able to track market cap by time
|
|
* [ ] Add a minimum amount of security to exchange
|
|
|
|
|
|
#### Front end
|
|
|
|
* [x] Serve static files using actix
|
|
* [x] Hack https://github.com/bigskysoftware/htmx/blob/master/src/ext/json-enc.js to all embedded fields.
|
|
* [x] Create UI to create user
|
|
* [x] Create UI to create security
|
|
* [ ] Find a "nice" solution for chart.js
|