1
0
Fork
You've already forked silverfish
0
forked from conjured/silverfish
cutest lil ecommerce system you've ever seen
  • Rust 78.2%
  • HTML 10.7%
  • TypeScript 3.5%
  • Fluent 3.2%
  • CSS 2.2%
  • Other 2.2%
Kyle Lacy f482d135dd Fix admin static asset paths ( #168 )
While setting up my dev environment, I noticed that the admin pages were coming back unstyled. I did some digging and noticed that the asset paths in the HTML had an extra `/stall/` component in the path, which didn't match what the backend was serving (which led to a 404 for each of the assets). This is a small PR that just updates the asset paths in the HTML template so they match the paths that the backend serves.
(I opted to remove the `/stall/` component, but the other option was to adjust the backend to _add_ `/stall/` to the static asset paths instead, lemme know if that'd be better and I can update the PR to flip it the other way around!)
![Browser showing the "/admin" page in Silverfish, with styling. The Web Inspector is open, showing assets loaded with paths like "http://127.0.0.1:4000/admin/static/assets/js/site.js"](/attachments/9fe9adca-690d-44b9-9855-b5950080e47b)
Reviewed-on: conjured/silverfish#168
Reviewed-by: sabrinagannon <sabrinagannon@noreply.codeberg.org>
Reviewed-by: Kat Marchán <zkat@noreply.codeberg.org>
Co-authored-by: Kyle Lacy <kylelacy@kyle.space>
Co-committed-by: Kyle Lacy <kylelacy@kyle.space>
2025年12月04日 19:49:32 +01:00
.cargo Moving db stuff out into separate crates ( #116 ) 2025年10月13日 00:00:05 +02:00
.forgejo/workflows flatten silverfish-stall into a single top level silverfish again 2025年11月29日 09:41:22 -08:00
config flatten silverfish-stall into a single top level silverfish again 2025年11月29日 09:41:22 -08:00
crates Fix admin static asset paths ( #168 ) 2025年12月04日 19:49:32 +01:00
docker flatten silverfish-stall into a single top level silverfish again 2025年11月29日 09:41:22 -08:00
src flatten silverfish-stall into a single top level silverfish again 2025年11月29日 09:41:22 -08:00
src-frontend flatten silverfish-stall into a single top level silverfish again 2025年11月29日 09:41:22 -08:00
stall-prototype Upload files to "stall-prototype" 2025年09月09日 00:10:38 +02:00
static flatten silverfish-stall into a single top level silverfish again 2025年11月29日 09:41:22 -08:00
.env login/auth/admin creation/etc ( #43 ) 2025年08月11日 04:47:56 +02:00
.gitignore flatten silverfish-stall into a single top level silverfish again 2025年11月29日 09:41:22 -08:00
.rustfmt.toml initial commit 2025年08月01日 00:08:19 -07:00
askama.toml flatten silverfish-stall into a single top level silverfish again 2025年11月29日 09:41:22 -08:00
Cargo.lock flatten silverfish-stall into a single top level silverfish again 2025年11月29日 09:41:22 -08:00
Cargo.toml flatten silverfish-stall into a single top level silverfish again 2025年11月29日 09:41:22 -08:00
flake.lock Add nix flake to repo ( #38 ) 2025年08月08日 04:34:48 +02:00
flake.nix Fix flake.nix, allow sourcing dependencies with git ( #100 ) 2025年09月27日 07:11:58 +02:00
i18n.toml flatten silverfish-stall into a single top level silverfish again 2025年11月29日 09:41:22 -08:00
Justfile flatten silverfish-stall into a single top level silverfish again 2025年11月29日 09:41:22 -08:00
LICENSE.md Rename license 2025年08月13日 19:52:25 +02:00
README.md flatten silverfish-stall into a single top level silverfish again 2025年11月29日 09:41:22 -08:00
rust-toolchain.toml environment-specific configuration process and @include directive 2025年08月03日 03:08:25 -07:00

silverfish

new kid on the block

Requirements

  • Rust 1.88.0 or later w/ Cargo (use rustup)
  • Node.js 20 or later
  • (optional) watchexec
  • (optional) just: Can be installed with cargo install just

Getting Started

  1. (optional) Copy ./config/dev.secret.example.kdl to ./config/dev.secret.kdl and edit as desired.
  2. cargo run -- keygen to create session-key and store the result in dev.secret.kdl
  3. just db-setup to create the database and migrate it.
  4. just dev to start the server/watcher with all frontend stuff installed and built.
  5. Visit https://localhost:4000 or wherever you configured your dev server to listen.

See Justfile for other tasks to run.