# oceanetwork **Repository Path**: LLiuJJ/oceanetwork ## Basic Information - **Project Name**: oceanetwork - **Description**: good lab 海洋知识图谱 - **Primary Language**: C++ - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2022-02-19 - **Last Updated**: 2022-12-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Oceanetwork ### nebula-importer Start ``` $ git clone https://github.com/vesoft-inc/nebula-importer.git $ cd nebula-importer $ make build $ ./nebula-importer --port 5699 --callback "http://0.0.0.0:7001/api/import/finish" ``` ### nebula-http-gateway Start ``` $ git clone https://github.com/vesoft-inc/nebula-http-gateway.git $ cd nebula-http-gateway $ make build $ nohup ./nebula-httpd & ``` GoodLab 基于 nebula 设计的海洋知识图谱 生产部署 1.构建 ``` npm run build ``` 产出物在 /usr/share/nginx/html/oceanetwork 2.配置 nginx ``` server { listen 7001; server_name 127.0.0.1; resolver 127.0.0.11 ipv6=off; location / { root /usr/share/nginx/html/oceanetwork; # {产出物目录} } location /upload-dir/ { root /; autoindex on; } location ~ ^/api-nebula/([A-Za-z0-9\/]+) { proxy_pass http://127.0.0.1:8080/api/$1; } location ~ ^/api-import/([A-Za-z0-9\/]+) { proxy_pass http://127.0.0.1:5699/$1; } } ``` 拷贝产出到 /usr/share/nginx/html/oceanetwork ``` cp -R ~/oceanetwork/app/public/* /usr/share/nginx/html/oceanetwork ```