Skip to content

codekeyz/dart-blog

Repository files navigation

Dart Blog Backend

dart codecov

Setup

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

Migrate Database

$ dart run yaroorm migrate
┌──────────────────────────────┬──────────────────────────────┐
│ Migration                    │ Status                       │
├──────────────────────────────┼──────────────────────────────┤
│ create_users_table           │ ✅ migrated                  │
├──────────────────────────────┼──────────────────────────────┤
│ create_articles_table        │ ✅ migrated                  │
└──────────────────────────────┴──────────────────────────────┘

Start Server

$ dart run --enable-asserts

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