Coder Social home page Coder Social logo

delktsai / react-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gongtiexin/react-template

0.0 2.0 0.0 1.43 MB

基于react + react-router-v4 + mbox + antd + es6 + webpack的前端项目模板

JavaScript 47.93% Shell 0.46% HTML 4.20% CSS 47.41%

react-template's Introduction

前端项目模板 node yarn

运行

npm run dev
//DEV_PROXY=localhost yarn run dev_recommend-system

打包

npm run build

nginx 配置(参考)

upstream develop.local {
    server 127.0.0.1:00000;
}

server {
    listen       80;
    server_name  develop.com www.develop.com;

    charset  utf-8;
    gzip on;
    gzip_types application/javascript text/html text/css;
    client_max_body_size  250m;
    #access_log  /var/log/nginx/log/host.access.log  main;
    #add_header Cache-Control no-cache;
    #add_header Pragma: no-cache;
    #add_header Expires: -1;

    root  /home/hldev/hldata/frontend/fe-template/dist;
    location / {
        try_files $uri /index.html =404;
    }

    location /api {
        proxy_pass http://develop.local;
    }

    error_page  404  /static/html/404/404.html;
}

iconfont

本模板中有 2 个字体包:ant-design,material-design,用法参考官网(antd,md)

react-template's People

Contributors

gongtiexin avatar

Watchers

 avatar  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.