-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic shell for member's panel app with keycloak SSO integration.
- Loading branch information
1 parent
cf2cdfb
commit 9a27223
Showing
16 changed files
with
4,582 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "Member's Panel" | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
nix-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install nix | ||
uses: cachix/install-nix-action@v18 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
|
||
- name: Build via nix | ||
working-directory: members-panel | ||
run: nix-build test.nix |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
config.json | ||
dist/ |
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,37 @@ | ||
# Members Panel | ||
|
||
**Work In Progress!** | ||
|
||
Access entry dashboard for organization members | ||
|
||
## Setup | ||
|
||
First define configuration starting from example file: | ||
|
||
``` | ||
cp config.example.json example.json | ||
``` | ||
|
||
Configuration is compile-time. It's used to produce static file where all the configuration options | ||
are inlined. This means that configuration file is used to configure buid | ||
prior to invoking compiler. | ||
|
||
Start development server: | ||
|
||
``` | ||
npm start | ||
``` | ||
|
||
Compile production assets: | ||
|
||
``` | ||
npm run build | ||
``` | ||
|
||
## Nix | ||
|
||
Trigger test nix build: | ||
|
||
``` | ||
nix-build test.nix | ||
``` |
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,5 @@ | ||
{ | ||
"keycloak_url": "https://keycloak.ictunion.cz", | ||
"keycloak_realm": "members", | ||
"keycloak_client_id": "test-client" | ||
} |
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,26 @@ | ||
{ buildNpmPackage | ||
, nodejs | ||
, nix-gitignore | ||
, config | ||
}: | ||
let | ||
config-json = builtins.toJSON config; | ||
in | ||
buildNpmPackage { | ||
name = "members-panel"; | ||
buildInputs = [ | ||
nodejs | ||
]; | ||
src = nix-gitignore.gitignoreSource [] ./.; | ||
npmDepsHash = "sha256-R8cADTzF2o5YbtXISE5YYRj0tTwV7j/Z2+jq7JCPq+M="; | ||
|
||
configurePhase = '' | ||
echo '${config-json}' > config.json | ||
''; | ||
|
||
installPhase = '' | ||
mkdir -p $out/var/www | ||
npm run build | ||
cp dist/* $out/var/www | ||
''; | ||
} |
Oops, something went wrong.