in React

一、首先来个演示:演示二、包含的内容、首页列表[分页],详情页[懒加载],套图随机阅读等功能。三、构建react应用,不会的看官方文档:https://reactjs.org/docs/create-a-new-react-app.html这里直接npx create-react-app me...

in fastapi

一、JWT验证:首先安装pyjwt(pip install pyjwtcore/token.pyfrom datetime import timedelta, datetime import jwt from fastapi.security import OAuth2PasswordBea...

in fastapi

一、妹子图下载。这里提供一份一千多套的COSPLAY下载地址:https://drive.google.com/file/d/1A63IbCMNz3WymR5j23z40DvpGEU-KmZz/view?usp=sharing二、创建artcle模型同user模型:apps/artcle/mo...

in fastapi

一、创建apps/users/schemas.py:from typing import List from pydantic import BaseModel class UserBase(BaseModel): username: str email: str ...

in fastapi

一、数据库构建首先安装sqlalchemy和mysqlconnector(pymysql也可)创建core/database.py:import uuid from sqlalchemy import create_engine from sqlalchemy.ext.declarative...

in fastapi

一、项目结构图-meizitu --apps ----users ----artcle --core --extensions --static --templates --main.py 主文件夹meizitu. 下面包含apps【users,artcle】文件夹,core文件夹存放fas...