newbee-mall-api-rs
newbee-mall-api-rs copied to clipboard
🔥🔥 Newbee Mall Backend API - Rust Language Version. 新蜂商城后端接口 - rust 语言版本 🚧[WIP]
English | 简体中文
newbee-mall-api-rs
Rust version of the back-end API for NewBee Mall newbee-mall-api.
-
Issues
·
Discussions
-
About
This project is the Rust version of the back-end API for NewBee Mall newbee-mall-api, which is based on the original version's data structures and most of its logic.
Built With
Dependencies on Front-end Projects
- NewBee Mall Vue2 Version newbee-mall-vue-app
- NewBee Mall Vue3 Version newbee-mall-vue3-app
- NewBee Mall Back-end Management System Vue3 Version vue3-admin
Getting Started
1. Configure the Project
# Clone the project
git clone https://github.com/maiqingqiang/newbee-mall-api-rs
# Go to the project directory
cd newbee-mall-api-rs
# Copy .env
cp .env.exmaple .env
2. Configure the Database
# Install diesel_cli. If installation fails, refer to the Diesel document: https://diesel.rs/guides/getting-started or https://github.com/diesel-rs/diesel/blob/master/guide_drafts/backend_installation.md
cargo install diesel_cli --no-default-features --features mysql --version 2.1.1
# Run the database migration. Before running, make sure `.env` is configured with `DATABASE_URL`
diesel migration run
3. Run the Project
# Run
cargo run
Front-end project running is not covered here. Please go to the corresponding project to check it out.
License
Distributed under the GNU General Public License v3.0. See LICENSE for more information.