Skip to content

Remove References to SQLite #136

@maxn990

Description

@maxn990

Background

The scaffolding currently ships with SQLite as the default database (db.sqlite is committed to the repo and synchronize: true is likely set). Every C4C project eventually migrates to PostgreSQL on RDS, meaning new tech leads are doing unnecessary migration work and encountering TypeORM dialect differences mid-project.

Tasks

  • Remove db.sqlite from the repo and add it to .gitignore
  • Remove any related sqlite type packages from package.json
  • Replace the TypeORM DataSource config with a PostgreSQL driver (pg) using env-driven connection strings from example.env
  • Set synchronize: false and add a migrations/ directory with npm scripts for migration:generate, migration:run, and migration:revert. These exist just make sure they work properly.
  • Update the README setup instructions to reflect the new local dev flow

Acceptance Criteria

nx serve backend works out of the box after creating a db through pgAdmin or docker and updating the connection strings in .env. SQLite has no remaining references in the codebase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions