Code Monkey home page Code Monkey logo

usermangersystemstudy's Introduction

用于学习后端Python + 前端Vue+Vite作为后端编写的用户管理系统

版本说明

版本一:编写完所有页面和API后,用于学习Vue页面的编写和API的调用
版本二:在版本一的基础上增加路由,用于学习Vue路由相关的知识
版本三:在版本二的基础打包和部署及CROS配置,用于学习Vue打包和部署相关知识

使用说明

安装Python环境

cd 项目根目录
pip install -r requirements.txt

安装前端环境

cd 项目根目录/web
npm install

运行Python后端

cd 项目根目录
python main.py

运行前端

cd 项目根目录/web
npm run dev

打开浏览器访问http://localhost:5173/

版本一

可视化

版本二

可视化

版本三

增加服务器CROS配置,并修改项目代码为部署形式。

# 第一步:在版本二的基础上修改本地服务地址为线上服务器地址
# 增加后端CROS配置,允许前端部署服务器地址 + 端口
# 修改前端CROS配置,允许后端部署服务器地址 + 端口
# 第二步:运行后端服务
cd 项目根目录
python main.py
# 第三步:打包前端
cd 项目根目录/web
npm run build
# 第四步:运行前端服务
docker run --name nginx-test -v "$PWD/web/dist:/usr/share/nginx/html" -p 10000:80 -d nginx

usermangersystemstudy's People

Stargazers

 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.