Write a Rust Application following the Domain Driven Design pattern as a proof of concept.
- Clone the repository locally
https://github.com/EstebanBorai/rust-patterns-ddd.git-
Execute the
bin/dotenvscript to create a.envfile or copy the contents of the.env.samplefile into a new file with the name.env -
Run the Docker instance using the
bin/docker-startscript
bin/docker-start- 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.
bin/sqlx-cli migrate run- Install dependencies and execute the server
cargo run