Financial porfolio manager.
I gave a talk at Rust Belt Rust (2019):
https://github.com/toidiu/talk_rust_belt_rust_2019
Vue, Typescript, parceljs
- npm 6.14.4
- node 12.16.3
cd website
npm start
- https://github.com/diesel-rs/diesel/tree/master/diesel_cli
- local postgres instance (https://postgresapp.com)
cd service
make run
Rust
- cargo 1.32.0
cd service
cargo run
(optional) replace information in `fin_config/*.toml` to configure application
Switch mode by replacing dependency in file /fin/service/fin/Cargo.toml
.
-
fake data (default): the
iex-rs
crate is compiles assource_debug
by default which generates deterministic fake prices for stocks. It is a good way to quickly get started and work without an internet connection. -
real data: for real data register for a free account at iex cloud and replace token in
fin_config/development.toml
.
http://localhost:1234/
username: apoorv@toidu.com
password: 123456
use infra package and ansible to setup infra. postgres still requires manual setup
apt-get update && apt-get upgrade
dpkg-reconfigure tzdata
hostnamectl set-hostname example_hostname
adduser toidiu - toidiur0cks
adduser toidiu sudo
/etc/sudoers file add this line:
toidiu ALL=(ALL) NOPASSWD:ALL
su toidiu
mkdir ~/.ssh
local - scp ~/.ssh/id_rsa.pub toidiu@____:~/.ssh/authorized_keys
/etc/ssh/sshd_config
PermitRootLogin no
PasswordAuthentication no
echo 'AddressFamily inet' | sudo tee -a /etc/ssh/sshd_config
sudo systemctl restart sshd
sudo apt-get install postgresql postgresql-contrib
sudo passwd postgres
su - postgres
psql -d template1 -c "ALTER USER postgres WITH PASSWORD '____';"
createdb fin-prod
remove dash link if not logged-inenable ssl! https://github.com/acmesh-official/acme.shclean db, move fake_data migration out of prod pathbetter description for value portfoliocustom name for portfolio actualallow editing portfolio %- allow 'deleting' portfolio
- install psql on infra
- update warp
- goal portfolio
- create own goal portfolio
- edit goal portfolio
- copy goal portfolio