Giter Site home page Giter Site logo

ericzikun / smartcite-web Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 682 KB

该项目为语义相关的引文上下文抽取工具, 用户可以在 smartcite中完成对引文的显式上下文,隐式上下文等所有语义相关的引文上下文的抽取 ,集成Grobid工具,用户可以对pdf格式或者xml文件进行相关处理

HTML 4.89% CSS 26.41% JavaScript 68.66% Shell 0.04%

smartcite-web's Introduction

Smartcite-web 本地部署

    1. 本地终端输入以下,克隆代码到本地:

git clone https://github.com/ericzikun/smartcite-web.git

    1. 本地调试代码(编译器建议使用Vscode),启动项目:

yarn start

    1. 如果后端地址接口发生更改,则需要修改前端代码相应位置,如下:

Home.js文件下action处替换即可:

const props = {
        name: 'file',//name得看接口需求,name与接口需要的name一致
        // action: '/test/upload/file',//接口路径
        action: 'http://114.55.101.144:8080/extract',//接口路径
        // action: '/extract',
        data: {file} ,//接口需要的参数,无参数可以不写
        multiple: false,//支持多个文件
        showUploadList: true,//展示文件列表
        headers: {
          // "Content-Type": "multipart/form-data"
        },
    }

Result.js文件下action处,同上:

const file = []
  const props = {
    name: 'file',//name得看接口需求,name与接口需要的name一致
    action: 'http://114.55.101.144:8080/extract',//接口路径
    data: {file} ,//接口需要的参数,无参数可以不写
    multiple: false,//支持多个文件
    showUploadList: true,//展示文件列表
    headers: {
      // "Content-Type": "multipart/form-data"
    },
  }
  • 4.如果代码已修改,需要重新部署服务器,则需要再次生成build包覆盖之前的build包,即:

yarn build

Smartcite-web 前端部署(Linux版本)

  • 1.在服务器上安装linux版本的nginx

  • 2.在服务器上建立一个项目文件夹,例如:/home/smartcite

  • 3.将本地React项目的build包传到linux下的项目文件夹/home/smartcite

  • 4.修改linux服务器上的nignx配置: 找到default.conf文件,一般在/etc/nginx/sites-available里面,有的也可能在/etc/nginx/conf.d下 修改配置采用:vi default,修改里面对应的root地址(这个地址就是你的项目在linux服务器上的路径),端口(listen)根据需要修改,一般默认80端口 在这里插入图片描述

  • 5.重启nginx:在/usr/sbin下输入./nginx -s reload重启nginx服务(只要重新修改了nginx配置,都需要重启)

smartcite-web's People

Contributors

ericzikun avatar

Watchers

James Cloos avatar  avatar

Forkers

tj1451862

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.