Procházet zdrojové kódy

chore(env): add .env.example file for environment variable configuration and update .gitignore to include specific env files
docs(README): remove outdated features and improve clarity of the tech stack section
refactor(env): remove unused STRIPE_SECRET_KEY and STRIPE_WEBHOOK_SECRET from environment variable definitions

Mathias před 1 měsícem
rodič
revize
0a5cd1a40f
4 změnil soubory, kde provedl 16 přidání a 5 odebrání
  1. 11 0
      .env.example
  2. 5 1
      .gitignore
  3. 0 2
      README.md
  4. 0 2
      src/env.ts

+ 11 - 0
.env.example

@@ -0,0 +1,11 @@
+DATABASE_URL=postgresql://postgres@localhost:5432/workoutcool_local
+
+GOOGLE_CLIENT_ID=
+GOOGLE_CLIENT_SECRET=
+
+RESEND_API_KEY=
+
+NODE_ENV=development
+
+BETTER_AUTH_SECRET=
+BETTER_AUTH_URL=http://localhost:3000

+ 5 - 1
.gitignore

@@ -31,7 +31,11 @@ yarn-error.log*
 .pnpm-debug.log*
 
 # env files (can opt-in for committing if needed)
-.env*
+.env
+.env.local
+.env.test
+.env.development
+.env.production
 
 # vercel
 .vercel

+ 0 - 2
README.md

@@ -19,11 +19,9 @@ vast exercise database with detailed instructions and video demonstrations.
 ## Features
 
 - 🏋️ **Comprehensive Exercise Database** - Thousands of exercises with detailed descriptions, videos, and muscle targeting
-- 👨‍🏫 **Coach Management** - Tools for fitness coaches to manage their clients
 - 📊 **Progress Tracking** - Monitor client progress and workout statistics
 - 🎯 **Custom Workouts** - Create personalized workout routines
 - 🌐 **Multi-language Support** - English and French translations
-- 📱 **Responsive Design** - Works seamlessly on desktop and mobile
 
 ## Tech Stack
 

+ 0 - 2
src/env.ts

@@ -14,9 +14,7 @@ export const env = createEnv({
     GOOGLE_CLIENT_SECRET: z.string().min(1),
     RESEND_API_KEY: z.string().min(1),
     RESEND_AUDIENCE_ID: z.string().optional(),
-    STRIPE_SECRET_KEY: z.string().min(1),
     NODE_ENV: z.enum(["development", "production", "test"]),
-    STRIPE_WEBHOOK_SECRET: z.string().optional(),
     BETTER_AUTH_SECRET: z.string().min(1),
     OPENPANEL_SECRET_KEY: z.string().min(1),
   },