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: 8 months ago
JSON representation
Full-stack blog show-casing Dart on the frontend and backend 🚀
- Host: GitHub
- URL: https://github.com/codekeyz/dart-blog
- Owner: codekeyz
- Created: 2023-12-19T13:25:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-04T04:19:56.000Z (almost 2 years ago)
- Last Synced: 2024-01-04T04:29:22.645Z (almost 2 years ago)
- Topics: backend, dart, dart-stack, flutter-web, fullstack, pharaoh
- Language: Dart
- Homepage: https://dart-blog.onrender.com
- Size: 6.34 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Dart Blog Backend
 [](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_cli 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
```