christiankozalla / trading-stats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

inloopo Trading Stats

Traders need to track their progress over time to eventually sit down and assess their progress, reflect decision they made, sharpen their mindsets and iterate on their strategy.

This app aims to be a trader's daily companion and single source of truth for providing insights on their trading activity via data visualizations such as charts and tables.

Running in production

The app is currently running on a VPS behind a Caddy server reverse-proxy that routes all requests to PocketBase. PocketBase serves the Vue frontend app from its static directory pb_public, and acts as a REST API on all routes like /api/* . PocketBase is deployed as a single binary. A single process is managed by systemd. All data is currently stored in the pb_data directory such as the SQLite database or user-provided uploaded files. In the future, an S3 storage can be used for such file hosting.

Development

A Procfile is used for starting up the development environment. Here is a list of tools that need to be installed on the development machine.

  • Hivemind: Runs processes declared in a Procfile in parallel
  • modd: Watches for changes in Golang source code and rebuilds the PocketBase server upon changes.
  • Docker: Spins up a Caddy server delegating requests from the main host to the Vite dev-server and the PocketBase REST API. With this setup both frontend dev-server and backend API are available on the same host during development, so it's running mostly like in production, without CORS issues etc.
# Start the Dev-Environment
hivemind

About


Languages

Language:Go 47.1%Language:Vue 35.7%Language:TypeScript 12.9%Language:CSS 1.3%Language:Gherkin 1.1%Language:Shell 0.8%Language:JavaScript 0.4%Language:HTML 0.3%Language:Procfile 0.3%