This is a project generated by salvo-cli. You can run the program and test according to the following commands (for non-sqlite databases, please modify the database connection string first according to the tutorial, and complete the initial work of the data).
😄 The latest version of Salvo requires Rust version 1.75. If your compilation fails, please try upgrading with rustup update
.
//Run the project
cargo run
- I'm a rookie, this is my first website written in rusty language and there are a lot of unresolved issues in it. This project is not yet complete, my ability to progress is limited, and I'm stuck with jwt_auth in Router. The project is expected to use USDT as the currency, but I haven't figured out how to implement it yet. (Also: I'd like to make this project run on Docker, but I can't write a dockerfile). If anyone can help me with these issues, I would be very welcome and happy to.
- Docking Rainbow Easy Pay (or uses tron-sdk realization of receipts) ×
- I would like to use anychain-tron provided by Cregis for TRC-20 receipts
- Routing Privilege Control (Temporarily realized)
- WebSocket Message Push
- Web
- Dir: source_website_salvo_sea
- Dir: src (Source code directory)
- Dir: services (Module containing business logic services)
- File: mod.rs
- File: admin_user_service.rs
- File: custom_user_service.rs
- File: resource_category.rs
- File: resource_language_service.rs
- File: sys_carousel_service.rs
- File: sys_resource_service.rs
- File: website_service.rs
- Dir: controller (Module containing handler functions for handling incoming requests)
- File: mod.rs
- File: carousel.controller.rs
- File: custom_controller.rs
- File: resource_category_controller.rs
- File: resource_language_controller.rs
- File: sys_resources_controller.rs
- File: system_controller.rs
- File: website_controller.rs
- File: static_routers.rs
- Dir: routers (Module containing route handling functions)
- File: mod.rs
- File: admin.rs
- File: custom.rs
- Dir: dtos (Module defining Data Transfer Objects (DTOs) for encapsulating and transporting data)
- File: mod.rs
- File: custom_orders_dto.rs
- File: custom_recharge_records_dto.rs
- File: custom_user_dto.rs
- File: sys_carousel_dto.rs
- File: sys_category_dto.rs
- File: sys_image_dto.rs
- File: sys_language_dto.rs
- File: sys_resource_images_dto.rs
- File: sys_resources_dto.rs
- File: sys_user_dto.rs
- File: sys_website_dto.rs
- Dir: entities (Module defining entities and interacting with database)
- File: mod.rs
- File: custom_orders.rs
- File: custom_recharge_records.rs
- File: custom_user.rs
- File: sys_carousel.rs
- File: sys_category.rs
- File: sys_image.rs
- File: sys_language.rs
- File: sys_resource_images.rs
- File: sys_resources.rs
- File: sys_user.rs
- File: sys_website_info.rs
- File: prelude.rs
- File: config.rs (Module for reading and processing application configuration)
- File: db.rs
- Dir: utils (Module containing utility functions)
- File: mod.rs
- File: rand_utils.rs
- File: app_writer.rs (Standardize response)
- File: app_error.rs (Provides unified error handling functionality)
- File: captcha_utils.rs
- File: check_user.rs
- File: redis_utils.rs
- Dir: middleware (Module containing middleware)
- File: handle_404.rs
- File: cors.rs
- File: mod.rs
- File: jwt_auth.rs
- File: jwt.rs
- File: main.rs (Entry point of application, sets up and starts services)
- Dir: services (Module containing business logic services)
- File: Cargo.toml (Rust project dependency and configuration info)
- Dir: config (Folder containing all configuration files)
- Dir: certs (Directory for storing certificate files)
- File: cert.pem
- File: key.pem
- File: config.yml
- Dir: certs (Directory for storing certificate files)
- File: .env (Database connection string config file)
- Dir: assets (Static resources such as images, JavaScript scripts and CSS style sheets)
- File: favicon.ico
You can view the salvo documentation and more examples at https://salvo.rs/ 📖. If our tools have helped you, please star salvo and salvo-cli, which will greatly encourage us. ❤️