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

https://github.com/codekeyz/fullstack-quiz-app

Source code for Fullstack Quiz App on YouTube
https://github.com/codekeyz/fullstack-quiz-app

Last synced: 5 months ago
JSON representation

Source code for Fullstack Quiz App on YouTube

Awesome Lists containing this project

README

          

# Fullstack Quiz App in Dart

## Getting Started

### Generate code

> `dart run build_runner build --delete-conflicting-outputs`

### Migrations

Execute migrations using this command

```
$ dart run yaroorm migrate
```

> Run `dart run yaroorm` in your terminal to see all available commands

### Start Server

Run this command to start your Dart server.

```
$ dart run bin/server.dart
Server listening on port 8080
```

### Backend Routes

- `POST: /register`

Register a user. Requires `email`, `username` and `password`

- `POST: /login`

Login a user. Requires `email` and `password`.

### How To Use

When you add a new Entity Model eg: `Post`, generate a migration using `dart run yaroorm create create_posts_table`.