
socialcomputing/coursemapper-webserver-webservermake up to run the application using Docker Composemake tilt to automatically rebuild during development using Tiltmake mounted to run processes using Docker Compose, but mount source code from host machineVisit the proxy service on port 8000 to use the application.
The services making up the coursemapper-webserver project use the following images, hosted on Docker Hub:
Download NodeJS (v16.14.2) from the official website
Python (v3.7.2) from the official website
Download Java JDK 17 and install it
Download IntelliJ Ultimate or Visual Studio Code and install one of the code editors
Download MongoDB Community Server and MongoDB Compass and install them
Neo4j Desktop from the official website, install it, start the server, and login to the server.
Redis from the Redis releases page and install it
Downlod Elmo packages: Link 1 and Link 2, and copy it inside coursemapper-kg/app/algorithms folder
Download StanfordCoreNLP and extract the ZIP file inside coursemapper-kg/app/algorithms folder. Make sure the stanford-corenlp folder name is stanford-corenlp-full-2018-02-27.
Download Postman and install it
Download and install Github Desktop official website
Using your file explorer, go inside the directory webserver, copy the example.env file and paste it in the same folder. Rename the copied environment file to .env
Open a command prompt/terminal in the webserver directory
Type the command in the command prompt/terminal to install node packages
bashnpm ci
If you face issue with npm ci command, try npm install or npm install --force command. Caution: npm install and npm install --force will delete all the existing node packages, install the new ones and update the package-lock.json file. Please make sure you do not push your changes to the package-lock.json file.
After the packages are installed, type the following command to run the server
bashnpm run watch:dev
The server will run at http://localhost:8080
Stop the server by pressing Cntl + c inside the command prompt
Open a command prompt/terminal in the webapp directory
Type the command in the command prompt/terminal to install the Angular CLI
bashnpm i -g @angular/cli
Type the command in the command prompt/terminal to install node packages
bashnpm ci
After the packages are installed, type the following command to run the server
bashng serve
The server will run at http://localhost:4200
Stop the server by pressing Cntl + c inside the command prompt
Using your file explorer, go inside the directory coursemapper-kg
example.env file and paste it in the same folder. Rename the copied environment file to .env. Change the values (NEO4J_USER, NEO4J_PASSWORD, REDIS_PASSWORD) of the environment variables in the .env file to your own values.Open a command prompt/terminal in the coursemapper-kg directory (with administration rights for Windows)
Install and activate python virtual environment for Windows
Type the following commands to install and activate the virtual environment:
Install python virtual environment (only first time)
bashpip install pipenv
Install python package (only first time)
bashpipenv install
Activate the virtual environment (every time when you want to start the server)
bashpipenv shell
(Optional) To check the location of your Python virtual environment, type pipenv --venv the following command in your command prompt
Download the spacy package (only first time)
python -m spacy download en
Move to the directory coursemapper-kg, open a terminal, copy the codes below and paste it in the terminal one at a time to download the necessary nltk and sentence transformer packages.
Make sure that you have downloaded the models from number 7 and 8 from step 1 above.
python -c "import nltk;nltk.download('stopwords'); nltk.download('punkt'); nltk.download('wordnet'); import spacy; spacy.cli.download('en_core_web_sm'); from sentence_transformers import SentenceTransformer; SentenceTransformer('all-mpnet-base-v2'); from flair.embeddings import TransformerDocumentEmbeddings; TransformerDocumentEmbeddings('sentence-transformers/msmarco-distilbert-base-tas-b'); from app.services.course_materials.kwp_extraction.model import KeyphraseExtractor; KeyphraseExtractor(); KeyphraseExtractor('squeezebert/squeezebert-mnli');"
Run the worker
bashpipenv run python -m app.worker
CourseMapper.postman_collection.json found under docs foldermongodb://localhost:27017 in the URI textbox and press connect buttoncoursemapper_v2 in the left panel
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像服务
在 Docker Desktop 配置镜像
Docker Compose 项目配置
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
MacOS OrbStack 容器配置
在宝塔面板一键配置镜像
Synology 群晖 NAS 配置
飞牛 fnOS 系统配置镜像
极空间 NAS 系统配置服务
爱快 iKuai 路由系统配置
绿联 NAS 系统配置镜像
QNAP 威联通 NAS 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
无需登录使用专属域名
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
来自真实用户的反馈,见证轩辕镜像的优质服务