Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 1.66 KB

README.md

File metadata and controls

62 lines (46 loc) · 1.66 KB

Setting Up Your Environment

To set up your environment for the project, follow these steps:

  1. Create a .env file in the root of your project. You can use the following template:

    # Required: Your Supabase URL
    SUPABASE_URL=your_supabase_url
    
    # Required: Your Supabase API Key
    SUPABASE_KEY=your_supabase_key
    
    # Required: PostgreSQL connection string
    DATABASE_URL=postgresql://user:password@localhost:5432/mydb
    
    # Required: Upstash Redis configuration (https://upstash.com)
    UPSTASH_REDIS_REST_TOKEN=your_upstash_redis_rest_token
    UPSTASH_REDIS_REST_URL=your_upstash_redis_rest_url
  2. Install Prisma and set up your database:

    pnpm install @prisma/client
    npx prisma init

3. **Configure your Prisma schema** in `prisma/schema.prisma` to connect to your Supabase database:
```prisma
 datasource db {
   provider = "postgresql"
  url      = env("DATABASE_URL")
}
  1. Run the Prisma migrations to set up your database:

    pnpm prisma migrate dev --name init
  2. Testing the Setup:

  • You can test your setup by running the development server:
    pnpm dev
    • Access your application at Login.

    • Access your application at Upastash.

📞 Contact


Contributing

Engineered with ❤️ by the Plura Team