Giter Site home page Giter Site logo

mini's Introduction

README

环境依赖

项目根据react、react-route-dom来搭建,通过webpack打包生成

react环境基于node环境及其包管理工具npm,配置好node之后,克隆该工程或package.json文件,执行npm install命令即可安装全部依赖

运行方式

  • npm run server 进入开发调试环境,生成一个本地服务器,可以自动监听代码的更改

  • npm run build build生成生产环境的代码

项目结构

  • src目录

src目录用于放置源代码及工程所需静态资源,src的当前目录下放置了index.js入口文件及index.tmpl.html模板文件,其子目录分为componentapiassest目录

  • component目录

该目录用于存放react编写的各个组件js代码及其css代码

  • assets目录

该目录用于存放图标图片及全局css样式,其子目录分为了imagelayout目录

  • api目录

该目录用于存放全局方法及全局变量

  • build目录

build目录用于放置被编译打包生成后的文件,主要有index.htmlbundle.js,或者当存在较大的图片会生成images/目录

  • 根目录

根目录放置的是配置文件,node环境配置文件package.json、webpack环境配置文件webpack.config.js和一些插件配置文件

mini's People

Contributors

psychewang-t avatar huanghlun 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.