Giter Site home page Giter Site logo

nft-go-api's Introduction

NFT-GO后端服务

基于Vue3.0+Eelement-Plus+FastAPI+MongoDB的前后端分离的简易商城项目「后端部分」

运行环境

  • python 3.8.5
  • mongodb「需要新建名为NFTGO的数据库」

安装依赖

pip install -r requirements.txt

启动方式

python run.py

简要说明

  • main.py 主要代码文件,API接口都写在里面「目前」
  • models.py 实体类模型,因为MongoDB的数据结构,需要为其定制特殊的实体类「说实话还没搞太懂」
  • dbtest.py 用于数据库连接检测,直接运行该文件,输出系统内全部数据库「如下图」则说明连接成功
    image.png

特色功能

  • FastAPI会自动生成接口文档,可以直接测试接口,这个功能绝了👍
  • 进入方式:在启动的地址后面加上 /docs
  • image.png

nft-go-api's People

Contributors

gavin0x0 avatar

Watchers

 avatar

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.