Giter Site home page Giter Site logo

decredit-website-app's Introduction

DeCredit

基于币安智能链 MetaMask 钱包 去中心化 Dapp

  • 项目地址:
  • 项目主要使用了 react 前端库、yarn 作为包管理工具,webpack 打包工具。
  • 多端设备适配

开发环境配置


依赖安装

  • yarn install
  • yarn start 启动

项目说明


项目部署说明

部署

部署环境

  • 1.node 10+版本
  • 2.yarn (无版本要求)

部署步骤:

  • 1:安装依赖 npm install
  • 2:打包 npm run build
  • 3:上传文件 上传/build 目录下所有文件致服务器部署地址
  • 4:重载 nginx nginx -s reload

打包步骤:

1.根目录下 yarn build(会产生一个 build 目录), 2.将 build 目录下的所有文件上传到服务器 nginx 配置的指定目录。

nginx 配置:

  • nginx server
  server {
        listen       8080;
        server_name   XXX;
        location / {
           root /var/www/DeCredit-website-app
           build;    ///  文件存放地址
           #index  index.html index.htm;
           try_files $uri $uri/ @rewrites;
        }
        location @rewrites {
            rewrite ^(.*)$ /index.html last;
        }
  }

decredit-website-app's People

Stargazers

kean.yang avatar

Watchers

kean.yang 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.