技术栈
node.js, vue.js, axios, python, django, orm, restful api, djangorestframework, mysql, nginx, jenkins...项目搭建
本文的目的是走通整个项目的链路,于是会“弱化”掉系统功能的实现。
创建后端工程
执行django-admin startproject djangotest创建项目。...执行python manage.py runserver启动服务,使用postman来调用http://127.0.0.1:8000/api/demo/hello/。...{{ msg }}
同时在中使用axios添加ajax请求,请求http://127.0.0.1:8000/api/demo/hello/,将response.data...前后端结合完成。vue的8080可以停了。
?