2 Star 0 Fork 0

shengjian-tech / front_chaineye

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

n9e-fe

This is the web project for N9E

Usage

The built pub folder can work in the n9e.

you can deploy the front-end code independently, just replace the pub with the new release.

Dependencies

node: v16.x <= v16.15.0
npm: 8.x <= 8.5.5

Installation

npm install

Start

npm run dev

The back-end api proxy config is https://github.com/n9e/fe/blob/main/vite.config.ts#L49

Build

npm run build

Nginx Server

server {
    listen       8765;
    server_name  _;

    add_header Access-Control-Allow-Origin *;
        add_header 'Access-Control-Allow-Credentials' 'true';
        add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
    root   front-end/page/path;    # e.g. /root/n9e/pub;

    location / {
        root front-end/page/path;    # e.g. /root/n9e/pub;
        try_files $uri /index.html;
    }
   location /api/ {
        proxy_pass http://n9e.api.server;   # e.g. 127.0.0.1:18000
    }
}

Notice

  • vite.config.js and tsconfig.json should both configure to make sure alias works
  • Add "css.validate": false in vscode setting.json to ignore the css warning
  • Install the Prettier plugin in vscode and set the format on save
# Copyright 2022 ChainEye Team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # header: license: spdx-id: Apache-2.0 copyright-owner: ChainEye Team paths-ignore: - 'dist' - 'licenses' - '**/*.md' - '**/*.less' - '**/*.jsx' - '**/*.json' - 'LICENSE' - 'NOTICE' - '.gitignore' - '.github' - '.git' - '.husky' - '.prettierignore' comment: on-failure

简介

链眼 开源联盟链监控平台,已支持XuperChain 展开 收起
JavaScript 等 5 种语言
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/shengjian-tech/front_chaineye.git
git@gitee.com:shengjian-tech/front_chaineye.git
shengjian-tech
front_chaineye
front_chaineye
master

搜索帮助