Coder Social home page Coder Social logo

delktsai / pybbs-front-react Goto Github PK

View Code? Open in Web Editor NEW

This project forked from atjiu/pybbs-front-react

0.0 2.0 0.0 327 KB

pybbs前端项目,react.js开发

Home Page: https://dev.yiiu.co/#/

License: GNU Affero General Public License v3.0

JavaScript 92.10% HTML 1.25% CSS 6.65%

pybbs-front-react's Introduction

pybbs前端项目,使用react, redux, react-router, axios 开发

服务端地址:https://github.com/tomoya92/pybbs

接口地址修改位置:src/js/axios.js

const Axios = axios.create({
  baseURL: process.env.NODE_ENV === 'production' ? 'https://api.yiiu.co' : 'http://localhost:8080'
});

开始

运行

yarn install
yarn start # yarn start 启动的 NODE_ENV 是 development

构建

yarn install
yarn build # yarn build 后,部署运行后的 NODE_ENV 是 production

部署

nginx部署

# 假如构建好的build文件夹放在 /home/build
server {
  listen 5000;
  server_name localhost;
  location / {
    root /home/build;
    index index.html;
  }
}

serve命令运行

npm -g install serve
serve build
# 后台运行
nohup serve build &

贡献

欢迎大家提 issues 及 pr

捐赠

image image

如果觉得这个项目对你有帮助,欢迎捐赠!

开源协议

GNU AGPLv3

pybbs-front-react's People

Contributors

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