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

https://github.com/crazyoptimist/zero2prod-rust

Rust in Production Book
https://github.com/crazyoptimist/zero2prod-rust

Last synced: 8 months ago
JSON representation

Rust in Production Book

Awesome Lists containing this project

README

          

# Email Newsletter Subscription Service

This is a project from Zero To Production In Rust.

## Database Migration

Install sqlx-cli

```bash
cargo install sqlx-cli --no-default-features --features rustls,postgres
```

Create a database

```bash
sqlx database create
```

Create a new migration

```bash
sqlx migrate add
```

Run migrations

```bash
sqlx migrate run
```

## Testing

```bash
cargo test
```

## Credits

[Zero To Production In Rust](https://www.zero2prod.com/)