Skip to content

πŸ”§ Backend Environment Configuration and Database SetupΒ #64

@ChristianTonny

Description

@ChristianTonny

πŸ“‹ Overview

Set up backend environment configuration and database to support the new frontend-backend integration.

βœ… Acceptance Criteria

  • .env file created with all required variables
  • PostgreSQL database techcare_db created
  • Prisma migrations executed successfully
  • Health check endpoint returns successful connection
  • All existing API endpoints tested

πŸ”§ Required Environment Variables

DATABASE_URL="postgresql://username:password@localhost:5432/techcare_db"
JWT_SECRET="your_super_secret_jwt_key_here"
JWT_EXPIRY="7d"
EMAIL_HOST="smtp.your-email-provider.com"
EMAIL_PORT=587
EMAIL_USER="your-email@domain.com"
EMAIL_PASS="your-email-password"
MAX_FILE_SIZE=5242880
UPLOAD_DIR="uploads"
PORT=3000
NODE_ENV=development

πŸ“ Tasks

  1. Create and configure .env file
  2. Set up PostgreSQL database
  3. Run database migrations
  4. Test API endpoints with Postman
  5. Verify file upload functionality

⏱️ Estimated Time: 2-3 hours

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions