Skip to content

maiqingqiang/newbee-mall-api-rs

Repository files navigation

Contributors Forks Stargazers Issues MIT License

English | 简体中文


Logo

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

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.

Acknowledgments

Releases

No releases published

Packages

No packages published