Krovva/krovva-mvp

[FEAT]: NestJS Setup Project and Supabase DB Config

Open

#45 opened on Jan 22, 2025

 (12 comments) (0 reactions) (1 assignee)TypeScript (17 forks)auto 404
Non-rewardedODBoostbackenddifficulty: mediumenhancementexternal-devsgood first issue

Repository metrics

Stars
 (3 stars)
PR merge metrics
 (PR metrics pending)

Description

📚 Description:

  • The project needs a NestJS backend implementation using TypeORM to connect with our existing Supabase PostgreSQL database. The architecture should follow clean code principles and be optimized for the World App ecosystem.

🎯 Task Objectives:

Set up a new NestJS project with the following initial structure, or if you have a better structure go ahead:

src/
  ├── config/           # App & environment configurations
  │   ├── database.config.ts
  │   └── environment.config.ts
  ├── modules/          # Core modules (will expand later)
  │   └── health/      # Health check module
  ├── common/          # Shared code
  │   └── types/       # Type definitions
  └── main.ts

Implement Supabase connection using TypeORM:

  • Configure environment variables
  • Set up database connection
  • Create initial health check endpoint

✅ Acceptance Criteria:

Project Setup:

  • Initialize NestJS project with TypeScript
  • Install required dependencies
  • Implement folder structure
  • Create environment variables template

Database Configuration:

  • Successfully connect to Supabase using TypeORM
  • Environment variables properly set up
  • Basic health check endpoint working
  • Connection test successful

🔨 Resources:

Contributor guide