Skip to content

Add Astro DB integration with admin counter functionality#44

Open
Jinksi wants to merge 3 commits intomainfrom
db
Open

Add Astro DB integration with admin counter functionality#44
Jinksi wants to merge 3 commits intomainfrom
db

Conversation

@Jinksi
Copy link
Owner

@Jinksi Jinksi commented Aug 16, 2025

Summary

  • Add Astro DB integration with Counter table and seeding
  • Implement Astro Actions for type-safe database operations
  • Add interactive counter to admin dashboard
  • Add npm run db:push script and update documentation

Test plan

  • Verify admin counter functionality works
  • Test database operations in local and remote modes
  • Confirm authentication still works

Jinksi added 2 commits August 16, 2025 22:51
- Add @astrojs/db integration to astro.config.mjs
- Create Counter table with id, name, and count columns
- Add database seeding with initial adminCounter
- Implement Astro Actions for getting and incrementing counters
- Update admin dashboard with interactive counter button
- Add --remote flag to dev and build scripts for database connectivity
- Fix typo in counter name reference (adminCouter -> adminCounter)
- Add comprehensive Astro DB documentation to CLAUDE.md
- Document database schema, actions, and development workflow
- Add npm run db:push script for schema deployment
- Update development commands with database-related scripts
@netlify
Copy link

netlify bot commented Aug 16, 2025

Deploy Preview for ericjinks ready!

Name Link
🔨 Latest commit
🔍 Latest deploy log https://app.netlify.com/projects/ericjinks/deploys/68a082575536ae965c527375
😎 Deploy Preview https://deploy-preview-44--ericjinks.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

- Add ASTRO_DB_REMOTE_URL and ASTRO_DB_APP_TOKEN to environment variables
- Add Turso CLI setup commands to README for database creation
- Document Remote Database (Turso) section in CLAUDE.md
- Provide clear instructions for getting database URL and auth token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant