Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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...

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)