Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/codekeyz/dart-blog

Full-stack blog show-casing Dart on the frontend and backend 🚀
https://github.com/codekeyz/dart-blog

backend dart dart-stack flutter-web fullstack pharaoh

Last synced: 5 days ago
JSON representation

Full-stack blog show-casing Dart on the frontend and backend 🚀

Awesome Lists containing this project

README

        

# Dart Blog Backend

![dart](https://github.com/codekeyz/yaroo-example/actions/workflows/test.yml/badge.svg) [![codecov](https://codecov.io/gh/codekeyz/yaroo-example/graph/badge.svg?token=Q3YPK3LRLR)](https://codecov.io/gh/codekeyz/yaroo-example)

### Setup

```shell
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

```shell
dart run yaroorm_cli migrate --connection=local
```

- For production database, you can run this.

```shell
dart run yaroorm migrate
```

```shell
┌───────────────────────────────┬──────────────────────────────┐
│ Migration │ Status │
├───────────────────────────────┼──────────────────────────────┤
│ initial_table_setup │ ✅ migrated │
└───────────────────────────────┴──────────────────────────────┘
```

### Start Server

```shell
dart run
```

### Tests

```shell
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.

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