
neverminedio/marketplace-apiNevermined Marketplace API 是用于管理Marketplace常见功能的API服务,提供Marketplace核心功能的管理能力,支持数据资产交易、查询等相关操作。该镜像基于NodeJS构建,可通过Docker快速部署,适用于搭建和运行Nevermined Marketplace的后端服务。
bashyarn
bashyarn setup:dev
执行后将在config文件夹中生成local.js配置文件,用于本地环境配置。
local.js中配置数据库连接信息:javascriptelasticsearch: { node: '', // Elasticsearch节点地址 prefix: '', // 索引前缀 auth: { username: 'elastic', // 用户名 password: 'password', // 密码 } },
确保已安装Docker,在项目根目录执行:
bashdocker-compose up
bashnpm run dev
bashnpm build
yamlversion: '3' services: marketplace-api: image: neverminedio/marketplace-api ports: - "3000:3000" # API服务端口 environment: - NODE_ENV=production volumes: - ./config/local.js:/app/config/local.js # 挂载本地配置文件 depends_on: - elasticsearch elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:7.14.0 environment: - discovery.type=single-node - "ES_JAVA_OPTS=-Xms512m -Xmx512m" ports: - "9200:9200"
- src - greeting # 领域模型示例(包含聚合根) - common # 横切功能,如守卫、中间件、拦截器 - shared # 共享模块和服务(如Elasticsearch服务) - config # 按环境配置文件
确保Docker容器运行中(docker-compose up),执行:
bashyarn setup:dev yarn test:cov
启动开发服务器:
bashyarn setup:dev yarn dev
服务器运行后执行Postman测试:
bashyarn test:postman
Copyright 2022 Nevermined AG 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 [***] 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.
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务