This document provides step-by-step instructions on how to spin up the TectoniQ backend services and frontend application locally, along with the corresponding localhost URLs.
- Python 3.10+
- Node.js (for
npxtool support)
-
Navigate to the backend directory:
cd backend -
Set up a Python Virtual Environment:
python3 -m venv .venv source .venv/bin/activate -
Install Dependencies:
pip install -r requirements.txt
-
Configure Environment Variables: Create a
.envfile in thebackend/directory:cp .env.example .env
Open the
.envfile and enter your Gemini API key and port:GEMINI_API_KEY=your_gemini_api_key_here FLASK_PORT=5050
Note: If no Gemini API key is provided, the application will degrade gracefully and skip the AI-labelling step, while the rest of the parsing pipeline will run normally.
-
Start the Flask Backend Server:
python app.py
The backend starts running at:
- Local Host URL:
http://localhost:5050
- Local Host URL:
Once the backend server is running and healthy, spin up the frontend server.
-
Navigate to the project root directory:
cd .. -
Start the static file server: Use
npxto serve the static frontend assets on port3050:npx -y serve -l 3050 .The frontend starts running at:
- Local Host URL:
http://localhost:3050
- Local Host URL:
You can also spin up both servers in a single terminal window using the included startup shell script:
chmod +x start.sh
./start.shOnce both steps are complete, you can access the services at:
- 💻 Frontend Web App: http://localhost:3050
- 🧠 Backend REST API: http://localhost:5050 (Health Check: http://localhost:5050/api/health)