Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takeuchi-shogo/clean-architecture-rust
using Rocket and Diesel, Docker etc...
https://github.com/takeuchi-shogo/clean-architecture-rust
clean-architecture diesel-rs docker docker-compose nginx rocket rust
Last synced: 16 days ago
JSON representation
using Rocket and Diesel, Docker etc...
- Host: GitHub
- URL: https://github.com/takeuchi-shogo/clean-architecture-rust
- Owner: takeuchi-shogo
- Created: 2022-12-30T17:13:48.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-02T04:23:42.000Z (about 2 years ago)
- Last Synced: 2024-11-06T23:41:06.468Z (2 months ago)
- Topics: clean-architecture, diesel-rs, docker, docker-compose, nginx, rocket, rust
- Language: Rust
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust application
## Requirement
- container Docker
- languege Rust
- database Mysql
- web_server Nginx## Overall structure
### Docker
_Dockerfile is written in each directory under ./docker._
.
├── docker-compose.yml
├── mysql
│ └── Dockerfile
├── nginx
│ └── Dockerfile
└── rust
└── Dockerfile### Application
.
├── src <- application folder
├── target
├── .gitignore
├── Cargo.lock
└── Cargo.toml#### using languege and framwork
Languege __Rust__
Framwork
- __Rocket__
- __Diesel__#### Clean archtecture
./src
├── domain
│ ├── mod.rs
│ ├── user_profiles.rs
│ └── users.rs
├── infrastructure
│ ├── config.rs
│ ├── db.rs
│ ├── mod.rs
│ └── routing.rs
├── interface
│ ├── controllers
│ │ ├── mod.rs
│ │ └── product
│ │ ├── mod.rs
│ │ └── users_controller.rs
│ ├── gateways
│ │ ├── database
│ │ │ └── mod.rs
│ │ ├── gateways
│ │ │ └── mod.rs
│ │ └── mod.rs
│ └── mod.rs
├── lib.rs
├── main.rs
└── usecase
├── mod.rs
├── product
│ ├── mod.rs
│ └── user_interactor.rs
└── repositories
└── mod.rs__There is a possibility that it will increase in the future.__
Currently the above contents.### Database
- Mysql
.
├── config
│ └── my.conf
└── sql
└── 01_init_db.sql### Web server
- Nginx
.
└── default.conf## Description
Rust and Mysql and Nginx sample application.## Author
[Twitter Account](https://twitter.com/shogo_mthr123)