English | 简体中文
Rust version of the back-end API for NewBee Mall newbee-mall-api.
-
Issues
·
Discussions
-
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.
- 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
# 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
# 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
# Run
cargo run
Front-end project running is not covered here. Please go to the corresponding project to check it out.
Distributed under the GNU General Public License v3.0. See LICENSE for more information.