Skip to content

codekeyz/dart-blog

Repository files navigation

Dart Blog Backend

dart codecov

Dart Blog Dashbaord

Setup

dart pub get && dart run build_runner build --delete-conflicting-outputs

Migrate Database

  • For local dev, execute migrations on sqlite database using the command below
dart run yaroorm_cli migrate --connection=local
  • For production database, you can run this.
dart run yaroorm_cli migrate
┌───────────────────────────────┬──────────────────────────────┐
│ Migration                     │ Status                       │
├───────────────────────────────┼──────────────────────────────┤
│ initial_table_setup           │ ✅ migrated                  │
└───────────────────────────────┴──────────────────────────────┘

Start Server

dart run

Tests

dart test

Contribution & Workflow

We rely heavily on code-generation. Things like adding a new Entity, Middleware, Controller or Controller Method require you to re-run the command below.

dart pub run build_runner build --delete-conflicting-outputs