Giter Club home page Giter Club logo

newbee-mall-api-rs's Introduction

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

newbee-mall-api-rs's People

Contributors

maiqingqiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

newbee-mall-api-rs's Issues

运行报错

image

照着说明运行到cargo run 出现报错,系统win10 64位, rust版本1.71
cargo -V
cargo 1.71.0 (cfd3bbd8f 2023-06-08)

报错信息:
error: cannot find attribute max_length in this scope
--> src\models\schema.rs:196:11
|
196 | #[max_length = 32]
| ^^^^^^^^^^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.