Skip to content

chore(setup): configure drizzle ORM and eslint import sorting#6

Merged
Nirbhay21 merged 1 commit into
mainfrom
feature/db-and-tooling-setup
Jan 30, 2026
Merged

chore(setup): configure drizzle ORM and eslint import sorting#6
Nirbhay21 merged 1 commit into
mainfrom
feature/db-and-tooling-setup

Conversation

@Nirbhay21
Copy link
Copy Markdown
Owner

Setup Drizzle ORM & ESLint Import Sorting

Summary

This PR sets up the initial backend foundation for SmartAssess by configuring Drizzle ORM with PostgreSQL, validating database connectivity via a sample table, and improving code quality with ESLint-based import sorting.


What’s included

Database & ORM

  • Added Drizzle ORM configuration (drizzle.config.ts)
  • Configured direct database URL for migrations and Drizzle Studio
  • Created an initial tasks table to verify DB connectivity
  • Generated and committed:
    • SQL migration
    • Drizzle metadata (meta snapshot & journal)

Database integration

  • Added database client setup using postgres-js
  • Confirmed Drizzle queries and migrations work correctly

Linting & formatting

  • Added eslint-plugin-simple-import-sort
  • Enforced consistent import ordering across JS/TS files
  • Updated ESLint flat config (ESLint v9 compatible)

Tooling improvements

  • Added Drizzle scripts:
    • db:generate
    • db:migrate
    • db:studio
  • Installed missing TypeScript typings for Express middleware
  • Updated Express app with:
    • cors
    • helmet
    • compression

How this was verified

  • Drizzle migrations execute successfully
  • Database connection validated using the tasks table
  • Drizzle Studio loads schema correctly with direct DB URL
  • ESLint passes and auto-sorts imports

Notes / Follow-ups

  • The tasks table is temporary and used only for validation
  • Upcoming PRs will:
    • replace sample schema with domain-specific models
    • add authentication and validation

Type of change

  • Tooling / infrastructure
  • Database setup
  • Feature
  • Bug fix

@Nirbhay21 Nirbhay21 merged commit 76b7aea into main Jan 30, 2026
2 checks passed
@Nirbhay21 Nirbhay21 deleted the feature/db-and-tooling-setup branch January 30, 2026 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant