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
- Host: GitHub
- URL: https://github.com/crazyoptimist/zero2prod-rust
- Owner: crazyoptimist
- Created: 2024-04-01T19:58:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T16:50:47.000Z (about 2 years ago)
- Last Synced: 2024-04-14T04:53:48.749Z (about 2 years ago)
- Language: Rust
- Homepage:
- Size: 150 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)