Code Monkey home page Code Monkey logo

flask_crud's Introduction

Flask_crud

该项目使用Flask作为后端提供api,使用vue构建前端页面

依赖

python==3.8.2
Flask==1.1.2
Flask-Cors==3.0.8

使用方法

  1. 安装vue相关:

    $ npm install -g @vue/[email protected]
    $ npm install [email protected] --save
    $ npm install [email protected] --save
    $ npm install [email protected] --save
  2. 创建vue app:

    $ npm create vue

    设置:

    Vue CLI v3.7.0
    ? Please pick a preset: Manually select features
    ? Check the features needed for your project: Babel, Router, Linter
    ? Use history mode for router? Yes
    ? Pick a linter / formatter config: Airbnb
    ? Pick additional lint features: Lint on save
    ? Where do you prefer placing config for Babel, PostCSS, ESLint, etc.? In package.json
    ? Save this as a preset for future projects? (y/N) No
  3. 启动项目:

    $ python app.py  # server目录下
    $ npm run serve  # client目录下

    前端页面:http://localhost:8080

    后端页面:http://localhost:5000

参考

https://testdriven.io/blog/developing-a-single-page-app-with-flask-and-vuejs/

flask_crud's People

Contributors

lmfrank avatar

Watchers

James Cloos 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.