feat: add protected route; integrate casdoor; simplify backend

This commit is contained in:
jerlendds
2023-10-29 10:26:20 -06:00
parent a1b65af166
commit f855166a1d
162 changed files with 923 additions and 692 deletions

View File

@@ -39,6 +39,7 @@ usage () {
echo -e " $(c YsB)build$(c): Build the OSINTBuddy app (or a specific container ./launcher build ui)."
echo -e " $(c YsB)restart$(c): Restart the app (or a specific container: ./launcher restart janus)."
echo -e " $(c YsB)api:gen$(c): Generate API client SDK from the backend OpenAPI spec; launch the UI outside of the container"
echo -e " $(c YsB)setup:dev$(c): Create python venv and install dev dependencies"
echo -e " $(c YsB)bootstrap$(c): Initialize and download dependencies and check for environment misconfigurations"
echo -e " $(c YsB)debug:send$(c): Upload all logs to https://paste.c-net.org for help with debugging"
echo -e " $(c YsB)cleanup$(c): Remove docker volumes."
@@ -46,6 +47,7 @@ usage () {
echo -e " $(c YsB)migrate$(c): Generate a migration."
echo -e " $(c YsB)python$(c): Open a python shell on the backend."
echo -e " $(c YsB)ui$(c): Stop the UI container and launch the frontend locally."
echo -e " $(c YsB)kill$(c): Kill containers; down the stack."
echo -e " $(c YsB)containers$(c): List the names you can access the containers by"
usage_containers
@@ -78,10 +80,11 @@ case "$OB_CMD" in
api:gen)
cmd/api:gen
;;
kill)
cmd/downkill
;;
ui)
cmd/api:gen
ob_compose stop ui && \
cd ../frontend && yarn start
cmd/ui_dev
;;
debug:send)
cmd/debug:send
@@ -99,6 +102,9 @@ case "$OB_CMD" in
migrate)
cmd/migrate
;;
setup:dev)
cmd/setup:dev
;;
containers)
usage_containers
;;