No description
- accounts.ex: replace validate_user_password (if-based) with with-chain; drop unnecessary try/rescue around Repo.get_by. Extract transaction_unwrap helper to eliminate 3 copies of the Multi result-unwrap case block. - packets.ex: deduplicate store_bad_packet by extracting raw_packet_string, extract_error_type, and extract_error_message into composable helpers. Normalize find_coordinate_value — collapse 12 clauses into a generic deep_get/direct_get that handles atom/string keys and nested maps uniformly. - data_builder.ex: split build_simple_popup into separate data-construction (build_simple_popup_data) and rendering (render_popup) phases, eliminating duplicated PopupComponent/Safe/IO pipelines. - param_utils.ex: unify parse_float_in_range and parse_int_in_range via a shared parse_in_range that accepts Float.parse/Integer.parse as a function parameter — functions-as-values pattern. |
||
|---|---|---|
| .devcontainer | ||
| .forgejo/workflows | ||
| .github/workflows | ||
| assets | ||
| config | ||
| docs | ||
| k8s | ||
| lib | ||
| priv | ||
| rel | ||
| scripts | ||
| test | ||
| vendor | ||
| .credo.exs | ||
| .dialyzer_ignore.exs | ||
| .dockerignore | ||
| .formatter.exs | ||
| .gitignore | ||
| .gitmodules | ||
| .sobelow-skips | ||
| .test-commands | ||
| .tool-versions | ||
| AGENTS.md | ||
| capture_aprs.py | ||
| CHANGELOG.md | ||
| CLAUDE.md | ||
| Dockerfile | ||
| findings.md | ||
| fly.toml | ||
| horusec-config.json | ||
| LICENSE | ||
| mix.exs | ||
| mix.lock | ||
| README.md | ||
| security-policy.json | ||
| tail_logs.sh | ||
| tsconfig.json | ||
Aprs
Prerequisites
Before setting up the project, ensure you have the following installed:
- Elixir 1.17+
- Erlang/OTP
- PostgreSQL with PostGIS extension
Setup
To start your Phoenix server:
- Run the complete setup:
mix setup - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Now you can visit localhost:4000 from your browser.
Ready to run in production? Please check our deployment guides.
Deployment
This application is deployed to a Kubernetes cluster using ArgoCD. The Kubernetes manifests are in the k8s/ directory and are reconciled automatically when changes are pushed to the main branch. New container image tags are picked up by argocd-image-updater (no commits to k8s/deployment.yaml required).
Learn more
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix