### Start Production Server Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md Starts the production-ready server after building the application and running migrations. ```bash bun run start ``` -------------------------------- ### Install Blinko with Docker Source: https://github.com/blinkospace/blinko/blob/main/README.md Use this command to download and execute the installation script for Blinko. This is the quickest way to start using the application. ```bash curl -s https://raw.githubusercontent.com/blinko-space/blinko/main/install.sh | bash ``` -------------------------------- ### Environment Configuration Example Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md This is an example `.env` file. Create this file in the root directory and fill in your specific database credentials, secrets, and API keys. ```dotenv DATABASE_URL=postgresql://user:password@localhost:5432/blinko NEXTAUTH_SECRET=your-secret-key NEXTAUTH_URL=http://localhost:1111 # Optional S3 storage S3_ENDPOINT= S3_REGION= S3_BUCKET= S3_ACCESS_KEY= S3_SECRET_KEY= # AI Providers (optional) OPENAI_API_KEY= ANTHROPIC_API_KEY= # ... other AI provider keys ``` -------------------------------- ### Package and Install Blinko Chart Source: https://github.com/blinkospace/blinko/blob/main/helm/README.md Packages the Helm chart into a versioned archive and then installs it from the packaged file. ```bash helm package ./helm helm install my-blinko blinko-0.1.0.tgz ``` -------------------------------- ### Install Dependencies with Bun Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md Use this command to install all project dependencies using the Bun package manager. ```bash bun install ``` -------------------------------- ### Install and Use act CLI Source: https://github.com/blinkospace/blinko/blob/main/DEV.md Installs the act CLI using Chocolatey and demonstrates how to run a specific workflow file. ```bash choco install act-cli act -W .github/workflows/debug-changelog.yml ``` -------------------------------- ### Install Blinko with Custom Application and Resource Configuration Source: https://github.com/blinkospace/blinko/blob/main/helm/README.md Installs the Blinko Helm chart with custom application settings for base URL, NextAuth, and secret, along with specified memory and CPU resource requests. ```bash helm install my-blinko ./helm \ --set config.baseUrl="https://blinko.example.com" \ --set config.nextauth.url="https://blinko.example.com" \ --set config.nextauth.secret="your-super-secret-key" \ --set resources.requests.memory="256Mi" \ --set resources.requests.cpu="250m" ``` -------------------------------- ### Install Blinko with Ingress Enabled Source: https://github.com/blinkospace/blinko/blob/main/helm/README.md Installs the Blinko Helm chart with ingress enabled, configuring a specific host, path, and path type for external access. ```bash helm install my-blinko ./helm \ --set ingress.enabled=true \ --set ingress.hosts[0].host=blinko.example.com \ --set ingress.hosts[0].paths[0].path="/" \ --set ingress.hosts[0].paths[0].pathType="Prefix" ``` -------------------------------- ### Install Blinko with Built-in PostgreSQL Source: https://github.com/blinkospace/blinko/blob/main/helm/README.md Installs the Blinko Helm chart with the release name 'my-blinko', utilizing the chart's built-in PostgreSQL database. ```bash helm install my-blinko ./helm ``` -------------------------------- ### Install Blinko with Existing External Database Secret Source: https://github.com/blinkospace/blinko/blob/main/helm/README.md Use this command to install Blinko when connecting to an existing PostgreSQL database. Ensure the secret containing database credentials is created beforehand. ```bash # Create a secret with database credentials kubectl create secret generic my-db-secret --from-literal=password=mydbpassword # Install Blinko helm install my-blinko ./helm \ --set postgresql.enabled=false \ --set externalDatabase.enabled=true \ --set externalDatabase.host=my-postgres-host \ --set externalDatabase.existingSecret=my-db-secret \ --set externalDatabase.existingSecretPasswordKey=password ``` -------------------------------- ### Start Test Environment with Docker Compose Source: https://github.com/blinkospace/blinko/blob/main/test-docker/README.md Use this command to initiate the test environment defined in the docker-compose.test.yml file. Ensure you are in the 'test-docker' directory. ```bash cd test-docker docker-compose -f docker-compose.test.yml up -d ``` -------------------------------- ### Run Android Development Build Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md Starts the Android development build process using Tauri. ```bash bun run tauri:android:dev ``` -------------------------------- ### Install Blinko with External PostgreSQL Source: https://github.com/blinkospace/blinko/blob/main/helm/README.md Installs the Blinko Helm chart, disabling the built-in PostgreSQL and configuring it to use an external PostgreSQL database. Requires specifying the external database host and password. ```bash helm install my-blinko ./helm \ --set postgresql.enabled=false \ --set externalDatabase.enabled=true \ --set externalDatabase.host=my-postgres-host \ --set externalDatabase.password=mypassword ``` -------------------------------- ### Add @mastra/rag Package Source: https://github.com/blinkospace/blinko/blob/main/DEV.md Installs the @mastra/rag package using pnpm, ignoring scripts during installation. ```bash pnpm add @mastra/rag --ignore-scripts ``` -------------------------------- ### Run Frontend Only Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md Starts only the frontend application in development mode. ```bash bun run dev:frontend ``` -------------------------------- ### Get Application URL (NodePort Service) Source: https://github.com/blinkospace/blinko/blob/main/helm/templates/NOTES.txt Use this command when the service type is NodePort to get the application URL. ```bash export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "blinko.fullname" . }}) export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") echo http://$NODE_IP:$NODE_PORT ``` -------------------------------- ### Run Backend Server Only Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md Starts only the backend Node.js server for development purposes. ```bash bun run dev:backend ``` -------------------------------- ### Get Application URL (LoadBalancer Service) Source: https://github.com/blinkospace/blinko/blob/main/helm/templates/NOTES.txt Use this command when the service type is LoadBalancer to get the application URL. Note that it may take a few minutes for the LoadBalancer IP to be available. ```bash export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "blinko.fullname" . }} --template "{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}") echo http://$SERVICE_IP:{{ .Values.service.port }} ``` -------------------------------- ### Run Tauri Desktop App in Development Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md Starts the Tauri desktop application in development mode, allowing for live reloading and debugging. ```bash bun run dev ``` -------------------------------- ### Run Blinko Website Docker Container Source: https://github.com/blinkospace/blinko/blob/main/DEV.md Starts the Blinko website container in detached mode, configuring its name, network, ports, environment variables, restart policy, and platform. ```bash docker run -d \ --name blinko-website \ --network blinko-network \ -p 1111:1111 \ -e NODE_ENV=production \ -e NEXTAUTH_URL=http://localhost:1111 \ -e NEXT_PUBLIC_BASE_URL=http://localhost:1111 \ -e NEXTAUTH_SECRET=my_ultra_secure_nextauth_secret \ -e DATABASE_URL=postgresql://postgres:mysecretpassword@blinko-postgres:5432/postgres \ --restart always \ --platform linux/arm64 \ blinkospace/blinko:latest ``` -------------------------------- ### Build and Run Docker Compose Locally Source: https://github.com/blinkospace/blinko/blob/main/DEV.md Builds Docker images defined in docker-compose.yml and starts the services in detached mode for local development. ```bash docker-compose -f docker-compose.yml up -d --build ``` -------------------------------- ### Get Application URL (Ingress Enabled) Source: https://github.com/blinkospace/blinko/blob/main/helm/templates/NOTES.txt Use this command when ingress is enabled to determine the application's URL. ```go-template {{- if .Values.ingress.enabled }} {{- range $host := .Values.ingress.hosts }} {{- range .paths }} http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} {{- end }} {{- end }} {{- end }} ``` -------------------------------- ### Remove macOS Quarantine Attribute Source: https://github.com/blinkospace/blinko/blob/main/README.md Use this command to manually remove the quarantine attribute from an application on macOS if it shows as damaged during installation. This attribute is added by macOS to apps not notarized during download or installation. ```bash sudo xattr -rd com.apple.quarantine /Applications/blinko.app ``` -------------------------------- ### Run Test Docker Container Source: https://github.com/blinkospace/blinko/blob/main/DEV.md Starts a Docker container in detached mode for testing, configuring network, ports, environment variables, volume mounts, and restart policy. ```bash docker run -d \ --name blinko-website \ --network blinko-network \ -p 1111:1111 \ -e NODE_ENV=production \ -v /volume1/docker/blinko/blinkodata:/app/.blinko \ -e NEXTAUTH_SECRET=my_ultra_secure_nextauth_secret \ -e DATABASE_URL=postgresql://postgres:mysecretpassword@blinko-postgres:5432/postgres \ --restart always \ blinkospace/blinko:fa46f26 ``` -------------------------------- ### Get Application URL (ClusterIP Service) Source: https://github.com/blinkospace/blinko/blob/main/helm/templates/NOTES.txt Use this command when the service type is ClusterIP to access the application via port-forwarding. ```bash export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "blinko.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") echo "Visit http://127.0.0.1:1111 to use your application" kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 1111:$CONTAINER_PORT ``` -------------------------------- ### Run PostgreSQL Docker Container Source: https://github.com/blinkospace/blinko/blob/main/DEV.md Starts a PostgreSQL database container in detached mode, configuring its name, network, ports, environment variables, and restart policy. ```bash docker run -d \ --name blinko-postgres \ --network blinko-network \ -p 5435:5432 \ -e POSTGRES_DB=postgres \ -e POSTGRES_USER=postgres \ -e POSTGRES_PASSWORD=mysecretpassword \ -e TZ=Asia/Shanghai \ --restart always \ postgres:14 ``` -------------------------------- ### Open Prisma Studio Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md Launches Prisma Studio, a GUI tool for managing your database, allowing you to view and edit data. ```bash bun run prisma:studio ``` -------------------------------- ### Build Web Application Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md Compiles the frontend web application for production deployment. ```bash bun run build:web ``` -------------------------------- ### Generate Prisma Client Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md Run this command to generate the Prisma client, which is necessary for database interactions. ```bash bun run prisma:generate ``` -------------------------------- ### Deploy Database Migrations to Production Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md Applies all pending database migrations to the production database. ```bash bun run prisma:migrate:deploy ``` -------------------------------- ### Build Desktop Application Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md Compiles the Tauri desktop application for distribution. ```bash bun run tauri:desktop:build ``` -------------------------------- ### Run Development Database Migrations Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md Execute this command to apply database migrations in a development environment. ```bash bun run prisma:migrate:dev ``` -------------------------------- ### Build Docker Image Locally Source: https://github.com/blinkospace/blinko/blob/main/DEV.md Builds a Docker image locally, optionally using a mirror for build arguments. It then runs the container, mapping ports, setting environment variables, and mounting a volume. ```bash docker build --build-arg USE_MIRROR=true -t blinko . docker run --name blinko-website -d -p 1111:1111 -e "DATABASE_URL=postgresql://postgres:mysecretpassword@192.168.31.200:5438/postgres" -v "C:\Users\94972\Desktop\testblinko:/app/.blinko" blinko ``` -------------------------------- ### Build Docker Image for ARM64 Locally Source: https://github.com/blinkospace/blinko/blob/main/DEV.md Builds a Docker image specifically for the ARM64 architecture. It then runs the container, specifying the platform and other necessary configurations. ```bash docker buildx build --platform linux/arm64 -t blinko-arm . docker run --name blinko-website --platform linux/arm64 -d -p 1111:1111 -e "DATABASE_URL=postgresql://postgres:mysecretpassword@192.168.31.200:5438/postgres" -v "C:\Users\94972\Desktop\testblinko:/app/.blinko" dlhtx/blinko:latest docker run -p 1111:1111 -e "DATABASE_URL=postgresql://postgres:mysecretpassword@192.168.31.200:5438/postgres" -v "C:\Users\94972\Desktop\testblinko:/app/.blinko" dlhtx/blinko:latest ``` -------------------------------- ### Run Docker Compose for Production Source: https://github.com/blinkospace/blinko/blob/main/DEV.md Use this command to deploy the Blinko application in a production environment using a docker-compose configuration file. ```bash docker-compose -f docker-compose.prod.yml up -d ``` -------------------------------- ### Run Tests Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md Executes the project's test suite. Ensure tests are configured before running. ```bash bun run test ``` -------------------------------- ### Check Blinko Database Connection Environment Variables Source: https://github.com/blinkospace/blinko/blob/main/helm/README.md Inspect the environment variables of the Blinko deployment to verify database connection details. ```bash kubectl exec -it deployment/my-blinko -- env | grep DATABASE ``` -------------------------------- ### Connect to Blinko PostgreSQL Client Source: https://github.com/blinkospace/blinko/blob/main/helm/README.md This command allows you to connect to the Blinko PostgreSQL instance using a temporary client pod. It sets the necessary password environment variable and executes the psql command. ```bash export POSTGRES_PASSWORD=$(kubectl get secret my-blinko-postgresql -o jsonpath="{.data.postgres-password}" | base64 -d) kubectl run my-blinko-postgresql-client --rm --tty -i --restart='Never' --image docker.io/bitnami/postgresql:15 --env="PGPASSWORD=$POSTGRES_PASSWORD" --command -- psql --host my-blinko-postgresql -U postgres -d postgres -p 5432 ``` -------------------------------- ### Reset QEMU User Static for Multiarch Source: https://github.com/blinkospace/blinko/blob/main/DEV.md Resets the QEMU user static binaries, enabling multi-architecture support for Docker containers. ```bash docker run --rm --privileged multiarch/qemu-user-static --reset -p yes ``` -------------------------------- ### Upgrade Blinko Deployment Source: https://github.com/blinkospace/blinko/blob/main/helm/README.md Run this command to upgrade an existing Blinko deployment to the latest chart version. ```bash helm upgrade my-blinko ./helm ``` -------------------------------- ### Connect to PostgreSQL Database Source: https://github.com/blinkospace/blinko/blob/main/helm/templates/NOTES.txt This command connects to the PostgreSQL database using provided credentials. Ensure the POSTGRES_PASSWORD environment variable is set. ```bash export POSTGRES_PASSWORD=$(kubectl get secret --namespace {{ .Release.Namespace }} {{ include "blinko.fullname" . }}-postgresql -o jsonpath="{.data.postgres-password}" | base64 -d) kubectl run {{ include "blinko.fullname" . }}-postgresql-client --rm --tty -i --restart='Never' --namespace {{ .Release.Namespace }} --image docker.io/bitnami/postgresql:15 --env="PGPASSWORD=$POSTGRES_PASSWORD" --command -- psql --host {{ include "blinko.fullname" . }}-postgresql -U {{ .Values.postgresql.auth.username }} -d {{ .Values.postgresql.auth.database }} -p {{ .Values.postgresql.primary.service.ports.postgresql }} ``` -------------------------------- ### View Mock OpenAI Service Logs Source: https://github.com/blinkospace/blinko/blob/main/test-docker/README.md Inspect the logs of the mock OpenAI service to confirm that requests are being received from the Blinko container. This verifies server-side communication. ```bash docker logs mock-openai ``` -------------------------------- ### Seed Database Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md Populates the database with initial data, typically used after migrations. ```bash bun run seed ``` -------------------------------- ### Build Android Application Source: https://github.com/blinkospace/blinko/blob/main/CLAUDE.md Compiles the Tauri Android application for distribution. ```bash bun run tauri:android:build ``` -------------------------------- ### Add Bitnami Repository and Update Helm Source: https://github.com/blinkospace/blinko/blob/main/helm/README.md Adds the Bitnami Helm repository, which is required for the PostgreSQL dependency, and updates the local Helm repository cache. ```bash helm repo add bitnami https://charts.bitnami.com/bitnami helm repo update ``` -------------------------------- ### Check Service Status with Docker Compose Source: https://github.com/blinkospace/blinko/blob/main/test-docker/README.md Verify that all services defined in the docker-compose.test.yml file are running and healthy. This command lists the status of the containers. ```bash docker-compose -f docker-compose.test.yml ps ``` -------------------------------- ### View Blinko Pod Logs Source: https://github.com/blinkospace/blinko/blob/main/helm/README.md Retrieve logs from all Blinko pods. This is essential for diagnosing runtime issues and understanding application behavior. ```bash kubectl logs -l app.kubernetes.io/name=blinko ``` -------------------------------- ### Backup Blinko PostgreSQL Data Source: https://github.com/blinkospace/blinko/blob/main/helm/README.md This command backs up the PostgreSQL data for Blinko when using the built-in PostgreSQL. It first exports the database password and then uses pg_dump to create a backup file. ```bash # Get the PostgreSQL password export POSTGRES_PASSWORD=$(kubectl get secret my-blinko-postgresql -o jsonpath="{.data.postgres-password}" | base64 -d) # Create a backup kubectl exec -it my-blinko-postgresql-0 -- pg_dump -U postgres -d postgres > blinko-backup.sql ``` -------------------------------- ### Restore Blinko PostgreSQL Data Source: https://github.com/blinkospace/blinko/blob/main/helm/README.md Use this command to restore Blinko's PostgreSQL data from a backup file. ```bash # Restore from backup kubectl exec -i my-blinko-postgresql-0 -- psql -U postgres -d postgres < blinko-backup.sql ``` -------------------------------- ### Uninstall Blinko Helm Release Source: https://github.com/blinkospace/blinko/blob/main/helm/README.md Deletes the Kubernetes resources associated with the 'my-blinko' Helm release. ```bash helm delete my-blinko ``` -------------------------------- ### Check Blinko Pod Status Source: https://github.com/blinkospace/blinko/blob/main/helm/README.md This command retrieves the status of all Blinko pods. It's useful for initial troubleshooting to see if pods are running as expected. ```bash kubectl get pods -l app.kubernetes.io/name=blinko ``` -------------------------------- ### Run Specific Job with act CLI Source: https://github.com/blinkospace/blinko/blob/main/DEV.md Executes a specific job named 'debug-changelog' from a GitHub Actions workflow file using the act CLI. ```bash act -j debug-changelog -W .github/workflows/debug-changelog.yml ``` -------------------------------- ### Down and Remove Docker Compose Services Source: https://github.com/blinkospace/blinko/blob/main/test-docker/README.md Use this command to stop and remove all containers, networks, and volumes defined in the docker-compose.test.yml file. The '-v' flag ensures volumes are also removed. ```bash docker-compose -f docker-compose.test.yml down -v ``` -------------------------------- ### Insert SVG Icon to DOM Source: https://github.com/blinkospace/blinko/blob/main/app/index.html This JavaScript code inserts an SVG element with a defined symbol into the beginning of the document's body. Ensure the SVG structure and symbol ID are correctly defined for proper rendering. ```javascript document.body.insertAdjacentHTML('afterBegin', ` `) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.