Git Product home page Git Product logo

chain-web's Introduction

chain

开发文档移步

开发文档

  • 项目是由vue-cli@3脚手架搭起来的

vue-cli 脚手架

See Configuration Reference.

运行环境 NodeJs

  • 安装 NodeJs

NodeJs LTS

  • 测试安装是否成功
node -v
# npm 是用来安装依赖包的
npm -v

安装依赖

这里使用上一步的npm进行安装

第一种方法

  • 进入到根目录下
  • 执行 npm install 等待依赖安装
  • 安装完毕,根目录会多出一个依赖包文件夹 node_modules 和 package-lock.json

第二种方法

如果自己有使用 vue-cli,可以看到它内部用的yarn安装依赖的,如果你的网络(fq)没有问题,而且能很快的使用 yarn 镜像,优先使用 yarn 安装依赖

  • 需要安装 yarn
  • 全局安装 npm install -g yarn
yarn -v
  • 进入到根目录
  • 命令行输入 yarn 进行安装
  • 安装完毕,根目录会多出一个依赖包文件夹 node_modules 和 yarn.lock

启动项目

服务端

项目中已经 mock 数据了,需要打开一个命令窗,执行以下命令

npm run server

# or

yarn server

客户端

另起一个命令窗运行以下命令

# 安装了node的情况下
npm run serve 

# or 或者

# 安装了yarn的情况下
yarn serve 

启动成功

chain-web's People

Watchers

 avatar  avatar

Forkers

victorjiangxin

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.