GithubHelp home page GithubHelp logo

flosse / clean-architecture-with-rust Goto Github PK

View Code? Open in Web Editor NEW
80.0 3.0 8.0 491 KB

Full-Stack Clean Architecture implementation example written in Rust

Rust 98.09% HTML 0.35% Sass 1.08% Nix 0.48%
rust clean-architecture full-stack architecture

clean-architecture-with-rust's Introduction

Full-Stack Clean Architecture with Rust

This repository contains an example implementation of a Clean Architecture written in Rust.

Circles

Each circle (a.k.a layer) is organized in a separate crate. Currently there are these circles:

  • domain
  • application
  • adapter
    • json-boundary
  • infrastructure
    • cli
    • db
    • desktop
    • web
      • web-app-api
      • web-app-seed
      • web-server

Depending on your system the amount and the name of circles could be different but the main dependency rule must be ensured:

Source code dependencies can only point inwards.

that means

Nothing in an inner circle can know anything at all about something in an outer circle

Build & run

cargo install just
just setup
just run-web

Example Szenario

The main purpose of this example is to discuss the architecture, not the application szenario itself. Nevertheless, the code represents a real-world application that helps self-employed people organize their lives.

User Stories

As a self-employed person, I want to be able to write down spontaneous thoughts, so that I can find them later again at a central point.

As a self-employed person, I want to structure my thoughts, so that they're connected with my personal life topics.

clean-architecture-with-rust's People

Contributors

flosse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

clean-architecture-with-rust's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.