-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add quickstart docs for dev env
Adds a nix config so that tooling like `pnpm` is available immediately. Fleshes out the documentation around connecting to managed database instances, since merge of #56.
- Loading branch information
Showing
5 changed files
with
126 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
description = "Dev shell for Penumbra DEX explorer web application"; | ||
# inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; | ||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
inputs.flake-utils.url = "github:numtide/flake-utils"; | ||
|
||
outputs = { self, nixpkgs, flake-utils }: | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let pkgs = nixpkgs.legacyPackages.${system}; in | ||
{ | ||
devShells.default = pkgs.mkShell { | ||
name = "devShell"; | ||
nativeBuildInputs = [ pkgs.bashInteractive ]; | ||
buildInputs = with pkgs; [ | ||
fd | ||
file | ||
jq | ||
just | ||
pnpm | ||
postgresql | ||
]; | ||
}; | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
# A justfile for dex-explorer development. | ||
# Documents common tasks for local dev. | ||
|
||
# run the app locally with live reload, via pnpm | ||
dev: | ||
pnpm install | ||
pnpm dev | ||
|
||
# build container image | ||
container: | ||
podman build -f Containerfile . |