Code Monkey home page Code Monkey logo

vue-shop's Introduction

项目运行步骤

1. 使用git clone '仓库地址'命令克隆项目到本地并使用编辑器打开

2. 运行sql脚本并连接数据库

  1. 使用navicat(也可使用其它数据库管理工具)创建一个新的数据库(名称为mydb,和数据库配置文件中的数据库名保持一致)
  2. 在此数据库上右键选择运行sql文件,选择sql脚本文件(\vue_shop_server\db\mydb.sql
  3. 打开数据库配置文件(\vue_shop_server\config\default.json),将用户名和密码修改为自己本机所安装的mysql数据库的用户名和密码

3. 启动后端项目

  1. 在后端项目根目录(\vue_shop_server)下执行命令npm install安装项目所需要的依赖
  2. 在后端项目根目录(\vue_shop_server)下执行命令node ./app.js启动后端项目
  3. 判断后端项目是否启动成功:使用postman接口测试工具发送请求,若能正常返回响应,则后端项目启动成功,否则,启动失败

4. 启动前端项目

  1. 在前端项目根目录(\vue_shop)下执行命令npm install安装项目所需要的依赖
  2. 在前端项目根目录(\vue_shop)下执行命令npm run serve启动项目
  3. 在浏览器地址栏输入localhost:8080查看项目的运行情况

vue-shop's People

Contributors

x-f-y 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.