https://github.com/LeoBorai/rust-patterns-ddd
Proof of concept for Domain Driven Design in Rust
https://github.com/LeoBorai/rust-patterns-ddd
app ddd learning poc rust
Last synced: over 1 year ago
JSON representation
Proof of concept for Domain Driven Design in Rust
- Host: GitHub
- URL: https://github.com/LeoBorai/rust-patterns-ddd
- Owner: LeoBorai
- License: other
- Created: 2020-12-27T05:11:39.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-28T03:18:32.000Z (over 5 years ago)
- Last Synced: 2025-02-21T09:57:29.886Z (over 1 year ago)
- Topics: app, ddd, learning, poc, rust
- Language: Rust
- Homepage:
- Size: 2.79 MB
- Stars: 41
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
rust-patterns-ddd
Rust Domain-Driven-Design (DDD) POC
## Motivation
Write a Rust Application following the Domain Driven Design pattern as
a proof of concept.
## Running Locally
1. Clone the repository locally
```shell
https://github.com/EstebanBorai/rust-patterns-ddd.git
```
2. Execute the `bin/dotenv` script to create a `.env` file
or copy the contents of the `.env.sample` file into a new file
with the name `.env`
3. Run the Docker instance using the `bin/docker-start` script
```shell
bin/docker-start
```
4. When the server is ready, run migrations to make sure every
table on the database is available at the moment of connecting and
executing queries.
```shell
bin/sqlx-cli migrate run
```
5. Install dependencies and execute the server
```bash
cargo run
```