doc: added full instructions for local deployment #107
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

INSTRUCTIONS FOR DEPLOYING TRANSLATION SERVICES LOCALLY
Fork Repositories
Clone the llm-experiment-microservice-jack repo and open it in a DevContainer.
STEP 1: In llm-experiment-microservice-jack repo
Run:
uv inituv add -r requirements.txtInstall Ollama:
curl -fsSL https://ollama.com/install.sh | shRestart your terminal and verify:
ollama --versionStart the Ollama background server (keep this window open):
ollama serveIn a new terminal, pull the model and start Flask:
ollama pull qwen3:0.6buv run flask runTest your translator service by visiting:
Expected output:
{"is_english": false, "translated_content": "This is a German message"}LEAVE BOTH THE FLASK SERVER AND OLLAMA RUNNING
Clone nodebb-fall-2025-jack and open it in a DevContainer.
STEP 2: In nodebb-fall-2025-jack repo
Set the environment variable:
If not inside a DevContainer:
export TRANSLATOR_API_BASE="http://127.0.0.1:5000"If inside a DevContainer:
export TRANSLATOR_API_BASE="http://host.docker.internal:5000"Build NodeBB:
./nodebb buildStart NodeBB:
./nodebb startVerification Steps
Note: posts will take a while to translate and older posts will have the translation button but will not give translations
Create a new post in a non-english language (old posts won’t have
isEnglishfields).ex post text: (thai)
Create a new post in english language if necessary to verify that the button still appears but upon clicking shows the original text
If your microservice is running, you will see a blue button labeled:
Clicking the button toggles visibility of the translated text.
Expected Results
isEnglish: true→ translation button still shows upisEnglish: false→ button appears and shows the translated message when clickedTroubleshooting
Button not showing?
Check 1: Did you build?
./nodebb buildCheck 2: Is the post NEW?
Check 3: Check the database
Redis
redis-cliHGETALL post:1 # Check if isEnglish and translatedContent existCheck 4: Check browser console
Check 5: Check if translator is being called
Look for translation logs in NodeBB output
tail -f logs/output.logCheck 6: Check if you set the right environment
run
echo $TRANSLATOR_API_BASE#if not in devcontainer: http://127.0.0.1:5000, else : http://host.docker.internal:5000
Hard refresh
If templates are cached:
Clear browser cache or hard refresh
Ctrl+Shift+R (Windows/Linux)
Cmd+Shift+R (Mac)
Expected Flow
src/posts/create.jscallstranslator.translate()isEnglish: falseandtranslatedContent: "Hello world"