Branchwell

AI Resource Pro / website / scripts

Latest: Website: current files by Branchwell, 40 min ago

📁 covers
📁 supabase
📁 tests
📄 add_published_column.sql817 B
📄 add-is-archived-column.sql2.1 KB
📄 add-learning-slug.sh3.4 KB
📄 add-learning-slug.ts5.5 KB
📄 add-missing-categories.sql1005 B
📄 add-news-published-field.sql1.2 KB
📄 add-published-column.js3.1 KB
📄 add-slug-manual.sql700 B
📄 add-slug-to-learning-simple.sql1.3 KB
📄 add-slug-to-learning.sql1.2 KB
📄 add-slug-to-news.sql1.3 KB
📄 add-slug-to-news.ts5.4 KB
📄 add-website-column.sql2.9 KB
📄 apply-fix-recursive-policies.ts1.6 KB
📄 apply-image-url-migration.js2.9 KB
📄 associate-tools-with-llms.ts3.8 KB
📄 audit-llm-tag.mjs16.0 KB
📄 audit-tags-tools-learning.mjs23.3 KB
📄 audit-tags.mjs17.2 KB
📄 check-admin-users.ts4.4 KB
📄 check-blog-posts.ts5.3 KB
📄 check-categories.ts2.2 KB
📄 check-existing-tags.sql168 B
📄 check-featured-tools.ts2.0 KB
📄 check-missing-tools.ts3.1 KB
📄 check-news-table.js3.8 KB
📄 check-published-column.js2.3 KB
📄 check-remaining-tags.sql345 B
📄 check-tool-categories.ts3.8 KB
📄 check-tools-schema.ts2.0 KB
📄 check-tools.ts2.1 KB
📄 cleanup-orphaned-junctions.ts5.3 KB
📄 clear-migrated-tags.sql187 B
📄 column-check.sql579 B
📄 complete-update-category-counts.sql2.5 KB
📄 consolidate-tags.mjs29.5 KB
📄 corrected-update-category-counts.sql1.3 KB
📄 count-news-items.ts2.5 KB
📄 create_gemini_tutorial_content.mjs22.8 KB
📄 create-admin-rpc.sql513 B
📄 create-admin-rpc.ts3.7 KB
📄 create-category-count-functions.sql1.1 KB
📄 create-exec-sql-function.sql1019 B
📄 create-exec-sql-function.sql.txt1019 B
📄 create-faqs-table.sql2.2 KB
📄 create-faqs-table.ts4.5 KB
📄 create-initial-categories.sql658 B
📄 create-maintainer-functions.sql6.8 KB
📄 create-post-categories-table.ts4.2 KB
📄 create-settings-function.sql1.1 KB
📄 create-supabase-admin.ts6.9 KB
📄 create-supabase-schema.sql14.0 KB
📄 create-user-roadmaps-schema.sql6.2 KB
📄 debug-blog-api.ts4.7 KB
📄 debug-direct-blog-query.ts6.0 KB
📄 debug-tools-api.ts3.2 KB
📄 delete-user.ts2.9 KB
📄 direct-fix-recursive-policies.ts9.7 KB
📄 drop-tool-count-column.sql789 B
📄 dump-blog-schema.js1.3 KB
📄 find-valid-tool-categories.ts4.7 KB
📄 fix-dashboard-counts.tsx.example1.8 KB
📄 fix-database-integrity.ts14.1 KB
📄 fix-instance-count.sql1.6 KB
📄 fix-news-published-field.sql3.6 KB
📄 fix-recursive-policies.sql2.3 KB
📄 fix-recursive-policies.sql.txt2.3 KB
📄 fix-tutorial-content.js26.4 KB
📄 get-fresh-supabase-schema.js3.5 KB
📄 import-popular-prompts.mjs14.9 KB
📄 indexnow.mjs6.1 KB
📄 migrate-blog-tables.sql7.2 KB
📄 migrate-categories-schema.sql5.4 KB
📄 migrate-images-to-cloudflare.ts7.2 KB
📄 migrate-learning-categories.sql7.2 KB
📄 migrate-learning-resources.sql2.0 KB
📄 migrate-tags-to-categories.ts3.5 KB
📄 minimal-update-category-counts.sql707 B
📄 populate-tutorials.js10.6 KB
📄 prevent-test-news.ts2.4 KB
📄 process-blog-markdown.sh673 B
📄 process-blog-markdown.ts2.4 KB
📄 README.md1.0 KB
📄 remove-duplicate-news.sql2.6 KB
📄 remove-duplicates.ts7.8 KB
📄 remove-tags-column.sql442 B
📄 rename-tool-count-column.sql435 B
📄 revert-html-to-markdown.sh677 B
📄 revert-html-to-markdown.ts5.0 KB
📄 run-additive-schema-v2.mjs6.5 KB
📄 run-learning-slug-migration.js3.6 KB
📄 run-remove-duplicates.ts2.3 KB
📄 scheduled-db-maintenance.ts7.0 KB
📄 seed-categories-only.ts810 B
📄 seed-faqs.ts5.7 KB
📄 setup-and-fix-recursive-policies.ts5.2 KB
📄 supabase_learning_review_migration.sql105 B
📄 test-blog-insert.js1.7 KB
📄 test-categories-api.ts10.6 KB
📄 test-category-140.ts8.8 KB
📄 test-category-61.ts10.2 KB
📄 test-category-seeding.ts6.2 KB
📄 test-icon-update.ts566 B
📄 test-news-api.ts1.4 KB
📄 test-published-field.js5.6 KB
📄 test-rate-limit.sh2.8 KB
📄 test-seed-categories.ts8.4 KB
📄 update_airp_tool_reviews.mjs22.4 KB
📄 update-category-columns.sql2.2 KB
📄 update-category-counts-from-logs.sql1.1 KB
📄 update-category-counts-simple.sql1.1 KB
📄 update-category-counts.sql9.4 KB
📄 update-category-icons.ts1.2 KB
📄 update-column-and-rename.sql1.3 KB
📄 update-instance-count.sql2.2 KB
📄 update-tool-count.sql1.6 KB
📄 verify-migration.sql384 B

Admin Scripts

This directory contains utility scripts for administrative tasks.

Creating Admin Users

There are two scripts available for creating admin users:

Interactive Script

The interactive script will prompt you for the necessary information:

npm run create-admin

This will guide you through the process with prompts for:

  • Username (minimum 3 characters)
  • Name (optional)
  • Password (minimum 6 characters)

Command Line Script

If you prefer to create an admin user without interactive prompts (useful for automation), use:

npm run create-admin-cli -- <username> <password> [name]

Example:

npm run create-admin-cli -- admin password123 "Admin User"

Note: Make sure to include the -- before the arguments to pass them to the script correctly.

Requirements

  • Both scripts require the database to be running and accessible
  • The DATABASE_URL environment variable must be properly configured
  • The scripts will validate inputs and check for existing users with the same username