Aktueller Build-Flow:
cmake --preset linux-ninja-release && cmake --build --preset linux-ninja-release
Get started with the ThemisDB Coding Platform in under 5 minutes!
- Python 3.8 or higher
- pip (Python package manager)
- Optional: Node.js 16+ (for VSCode extension)
cd examples/21_coding_platform
pip install -r requirements.txtNote: You can skip dependencies for a basic demo using the mock implementation:
# The app works without dependencies for basic functionality
# Install only requests if you want to test web scraping
pip install requests beautifulsoup4python main.pyThe application will start with a mock ThemisDB client, so it works without a running server!
- Click the "Snippets" tab
- Click "New" button
- Fill in the form:
- Title: "Hello World in Python"
- Language: "python"
- Code:
def hello(): print("Hello, World!") if __name__ == "__main__": hello()
- Click "Save Snippet"
- Click the "Search" tab
- Enter a query: "hello world"
- Press Enter or click "Search"
- View results with similarity scores
- Click the "Web Scraper" tab
- Select "GitHub Repository"
- Enter URL:
https://github.com/fastapi/fastapi - Click "Start Scraping"
- Watch the log for progress
Note: Web scraping uses mock implementation by default. For real scraping:
- Install full dependencies
- Set GitHub token:
export GITHUB_TOKEN=your_token - See WEB_SCRAPING.md for details
To connect to an actual ThemisDB server:
-
Start ThemisDB:
docker run -d -p 8080:8080 -p 18765:18765 themisdb/themisdb:latest
-
Set environment variable:
export USE_REAL_THEMISDB=true -
Run the app:
python main.py
cd vscode_extension
npm install
npm run compileThen in VSCode:
- Press
F5to open Extension Development Host - Or: Run
npm run packageand install the.vsixfile
- Search Snippets:
Ctrl+Shift+P→ "ThemisDB: Search Snippets" - Save Code: Select code → Right-click → "ThemisDB: Save as Snippet"
- Find Similar: Select code → Right-click → "ThemisDB: Find Similar Code"
See VSCODE_INTEGRATION.md for full details.
The platform uses code embeddings for semantic search:
Query: "async http request python"
Results:
1. Async HTTP with aiohttp (95% match)
2. Concurrent requests (87% match)
3. FastAPI endpoint (82% match)
Collect code from:
- GitHub repositories
- Stack Overflow Q&A
- Documentation sites
- Browse snippets in sidebar
- Insert code with one click
- Context-aware suggestions
- README.md - Complete feature overview and documentation
- HOW_TO.md - Detailed step-by-step guide
- WEB_SCRAPING.md - Web scraping setup and usage
- VSCODE_INTEGRATION.md - VSCode extension guide
- ARCHITECTURE.md - System design and architecture
Install missing dependencies:
pip install -r requirements.txtOr for basic demo (no ML features):
pip install requests beautifulsoup4Make sure ThemisDB server is running:
docker ps | grep themisdb
curl http://localhost:8080/healthcd vscode_extension
rm -rf node_modules
npm install
npm run compile- Read Full Documentation: Start with README.md
- Follow Tutorials: Check HOW_TO.md
- Set Up Web Scraping: See WEB_SCRAPING.md
- Install VSCode Extension: Follow VSCODE_INTEGRATION.md
- Understand Architecture: Read ARCHITECTURE.md
Collect and organize your own code snippets:
# Save frequently used patterns
# Search with natural language
# Find similar implementationsShare code knowledge in your team:
# Import team projects
# Document internal standards
# Distribute VSCode extensionLearn from real-world code:
# Scrape top GitHub repos
# Search by algorithm type
# Compare implementations- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: ThemisDB Docs
Happy Coding! 🚀