Git Product home page Git Product logo

code-stats's Introduction

用于SEEC的统计数据展示页

其实没什么可说的,Swiper NB! 前人栽树后人乘凉啊哈哈……

2019.10.14 更新

项目启动

环境和依赖

首先需要node.js环境,node版本需要 > 8.9,最好 > 8.11。

其实用官网推荐的LTS就行(目前好像是10.16.3?)。然后运行:

npm install
# 如果安装了yarn
yarn
# or
yarn install

启动开发服务器(开发环境)

npm run serve
# or
yarn run serve

然后开发服务器会在localhost: 8085启动。

打包并部署(生产环境)

npm run build
# or
yarn run build

打包后的静态资源在~/code-stats/里。注意,由于使用了前端路由,对部署的路径有要求,需要部署在/code-stats这个URL上,比如http://foo.bar/code-stats。

配置可以修改。

使用的技术

框架

  • Vue 2(2.6.10)
  • Vuex
  • Vue-router

通信

  • axios

UI

  • Swiper(滑动效果)
  • Sass(CSS预处理器)

语言

  • JavaScript + babel
  • ESLint(代码风格检查)

配置调整

配置文件主要是/vue.config.js。主要可以调整的地方有:

// 生产环境部署的路径(也就是部署的URL)
const BASE_URL = process.env.NODE_ENV === 'production' ? '/code-stats/' : '/'
// 生成的静态资源的路径
outputDir: 'code-stats'
// 开发服务器占用的端口
devServer: {
    port: 8085
}

code-stats's People

Contributors

dependabot[bot] avatar hermitsun 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.