Skip to main content

Conclusion

Congratulations on setting up your local development environment for the Supabase TDD Boilerplate! Let's recap what we've covered so far:

  1. Project Structure: You've learned about the monorepo setup with Next.js, Hono, and Supabase.
  2. Database Structure: You understand the organization and team management schema.
  3. Testing Approach: You're familiar with the three-layer testing strategy (unit, integration, E2E).
  4. Development Workflow: You know how to use Turborepo and PNPM for efficient development.

Best Practices

  • Follow Test-Driven Development (TDD) principles
  • Keep your local database in sync with schema changes
  • Maintain up-to-date environment variables across all packages
  • Use version control effectively
  • Write comprehensive tests for new features
  • Follow the established project structure

What You've Achieved

By this point, you have a fully functional local development environment. You can:

  • Develop and test organization and team management features
  • Interact with a local Supabase instance
  • Run automated tests across all layers
  • Extend the database schema with proper RLS policies
  • Work efficiently in a monorepo structure

Next Steps

Now that you're comfortable with local development, you can:

  1. Extend Features

    • Add new organization management features
    • Implement team collaboration tools
    • Create custom role definitions
    • Add audit logging
  2. Improve Testing

    • Add more unit tests for components
    • Write integration tests for RLS policies
    • Create E2E tests for user flows
    • Set up continuous integration
  3. Deploy to Production

    • Set up a production Supabase project
    • Configure deployment pipelines
    • Set up monitoring and logging
    • Implement backup strategies
  4. Documentation

    • Add API documentation
    • Create user guides
    • Document deployment procedures
    • Write contribution guidelines

Resources

Continue to Deploying to Production to learn how to take your application live.