Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 🚀
- Host: GitHub
- URL: https://github.com/codekeyz/dart-blog
- Owner: codekeyz
- Created: 2023-12-19T13:25:40.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-04T04:19:56.000Z (10 months ago)
- Last Synced: 2024-01-04T04:29:22.645Z (10 months 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
![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
```