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!)  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> |
||
|---|---|---|
| .cargo | Moving db stuff out into separate crates ( #116 ) | |
| .forgejo/workflows | flatten silverfish-stall into a single top level silverfish again | |
| config | flatten silverfish-stall into a single top level silverfish again | |
| crates | Fix admin static asset paths ( #168 ) | |
| docker | flatten silverfish-stall into a single top level silverfish again | |
| src | flatten silverfish-stall into a single top level silverfish again | |
| src-frontend | flatten silverfish-stall into a single top level silverfish again | |
| stall-prototype | Upload files to "stall-prototype" | |
| static | flatten silverfish-stall into a single top level silverfish again | |
| .env | login/auth/admin creation/etc ( #43 ) | |
| .gitignore | flatten silverfish-stall into a single top level silverfish again | |
| .rustfmt.toml | initial commit | |
| askama.toml | flatten silverfish-stall into a single top level silverfish again | |
| Cargo.lock | flatten silverfish-stall into a single top level silverfish again | |
| Cargo.toml | flatten silverfish-stall into a single top level silverfish again | |
| flake.lock | Add nix flake to repo ( #38 ) | |
| flake.nix | Fix flake.nix, allow sourcing dependencies with git ( #100 ) | |
| i18n.toml | flatten silverfish-stall into a single top level silverfish again | |
| Justfile | flatten silverfish-stall into a single top level silverfish again | |
| LICENSE.md | Rename license | |
| README.md | flatten silverfish-stall into a single top level silverfish again | |
| rust-toolchain.toml | environment-specific configuration process and @include directive | |
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 withcargo install just
Getting Started
- (optional) Copy
./config/dev.secret.example.kdlto./config/dev.secret.kdland edit as desired. cargo run -- keygento createsession-keyand store the result indev.secret.kdljust db-setupto create the database and migrate it.just devto start the server/watcher with all frontend stuff installed and built.- Visit https://localhost:4000 or wherever you configured your dev server to listen.
See Justfile for other tasks to run.