CourseMapper-webserver, webserver service
100K+
CourseMapper is a collaborative course annotation and analytics platform that fosters collaboration and interaction around pdf/video learning materials, supported by visual learning analytics.
main)make 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
npm 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
npm 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
npm i -g @angular/cli
Type the command in the command prompt/terminal to install node packages
npm ci
After the packages are installed, type the following command to run the server
ng 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)
pip install pipenv
Install python package (only first time)
pipenv install
Activate the virtual environment (every time when you want to start the server)
pipenv 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
pipenv 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 panelContent type
Image
Digest
sha256:9a957e4a3…
Size
86.1 MB
Last updated
about 2 years ago
docker pull socialcomputing/coursemapper-webserver-webserver