Skip to content

WaveSpeedAI/idea2product

Repository files navigation

AI-Friendly Tool Project Template

This is a project template specifically designed for AI applications, aiming to provide a clear, easy-to-extend development foundation.

Getting Started for Developers

For more detailed information, please refer to README.DETAILED.md

To start developing with this project, follow these steps:

  1. Install Dependencies:

    pnpm i
  2. Environment Variable Configuration:

    cp .env.local.example .env.local

    Then edit the .env.local file and fill in the necessary environment variables. Required environment variables and their purposes are as follows:

    • POSTGRES_URL: Required - Database connection string, can be copied from supabase Connect>ORM, remember to replace the database password
    • STRIPE_SECRET_KEY: Required - Stripe secret key
    • NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: Required - Stripe publishable key
    • STRIPE_WEBHOOK_SECRET: Required - Stripe webhook secret
    • NEXT_PUBLIC_URL: Required - Outbound information configuration for redirects (e.g., after successful payment)
    • NEXT_PUBLIC_SUPABASE_URL: Required - Supabase URL. Although we use ORM for database operations, Supabase auth module is still needed
    • NEXT_PUBLIC_SUPABASE_ANON_KEY: Required - Supabase anonymous key
    • NEXT_PRIVATE_SUPABASE_SERVICE_KEY: Required - Supabase service key
    • OPENMETER_BASE_URL: Required - OpenMeter URL for usage billing module
    • OPENMETER_API_TOKEN: Required - OpenMeter API token for usage billing module
  3. Run Database Migrations:

    pnpm run db:migrate
  4. Run Development Server:

    pnpm run dev

Acknowledgements

This project references and thanks the following excellent open-source projects:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages