Skip to content

Commit 9b93e47

Browse files
authored
Merge branch 'main' into codex/build-dashboard-for-result-preview-7uakdc
2 parents 9294fed + f269bd7 commit 9b93e47

10 files changed

Lines changed: 2468 additions & 1858 deletions

File tree

Cargo.lock

Lines changed: 1031 additions & 1030 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ papaya = "0.2.3"
6666
# Web server + HTML rendering
6767
axum = { version = "0.7", features = ["macros", "form"] }
6868
v_htmlescape = "0.15"
69+
sqlx = { version = "0.7", features = ["runtime-tokio", "macros", "sqlite"] }
6970

7071
# Desktop GUI
7172
iced = { version = "0.12", optional = true, features = ["wgpu", "tokio"] }

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,42 @@ cargo fmt --all
4040
cargo clippy --workspace --all-targets -- -D warnings
4141
```
4242

43+
### Landing page & billing checkout
44+
45+
ShadowMap now ships with a minimalist marketing landing page, localized pricing, and optional Stripe Checkout integration.
46+
47+
1. Export your Stripe credentials and price IDs (test or live):
48+
```bash
49+
export STRIPE_PUBLISHABLE_KEY=pk_test_...
50+
export STRIPE_SECRET_KEY=sk_test_...
51+
export STRIPE_PRICE_STARTER_USD=price_123
52+
export STRIPE_PRICE_STARTER_EUR=price_456
53+
export STRIPE_PRICE_GROWTH_USD=price_789
54+
export STRIPE_PRICE_GROWTH_EUR=price_abc
55+
export STRIPE_PRICE_ENTERPRISE_USD=price_def
56+
export STRIPE_PRICE_ENTERPRISE_EUR=price_ghi
57+
# Optional overrides for post-checkout navigation
58+
export STRIPE_SUCCESS_URL=https://shadowmap.io/app?checkout=success
59+
export STRIPE_CANCEL_URL=https://shadowmap.io/pricing
60+
```
61+
62+
63+
2. (Optional) Point the lead-capture database at a custom SQLite location. The server defaults to
64+
`sqlite://shadowmap.db` in the working directory and will automatically create the
65+
`landing_leads` table when it starts:
66+
```bash
67+
export DATABASE_URL=sqlite:///var/lib/shadowmap/leads.db
68+
```
69+
70+
3. Launch the server:
71+
```bash
72+
cargo run --bin shadowmap-server
73+
```
74+
75+
4. Visit `http://localhost:8080/` for the public landing page and `http://localhost:8080/app` for the authenticated recon dashboard. Every checkout attempt stores the work email, plan, and region in
76+
the `landing_leads` table for follow-up.
77+
78+
4379
### Supply Chain Security
4480

4581
ShadowMap includes a lightweight workflow for generating a Software Bill of Materials (SBOM) and scanning it for known vulnerab

0 commit comments

Comments
 (0)