Skip to content

PeppyDays/things

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Things

This is an example repository to implement the application with Rust. It aims to exercise the Axum framework and tries to follow domain-driven and test-driven development. I'm going to log all decisions made to implement this application.

How to Run

# run account api
cd account
cargo run -p api

# should return 200 as a health check
# installing httpie is required, or using curl
http get :8080/account/user/check-health

Architecture Decision

To Do Items

I've finished implementing basic functionalities designed for account bounded context. For further learning, these are action items to do more.

  • Parse application configuration from environment variables (consider using dotenvy)
  • Reorganise error definition and split error messages for the clients and developers (consider using anyhow)
  • Add logging and tracing
  • Add database migration (consider using sqlx::migrate!())
  • Add integration tests, running the application locally and test from APIs to the database
  • Implement caching in GitHub workflow to speed up cargo build --release
  • Update ADR docs

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages