Prerequisites
Make sure the following are available before you begin:- Node.js LTS 22+ — nodejs.org
- Turso account + CLI — turso.tech (free tier is sufficient)
- Google AI Studio API key — aistudio.google.com
- Git
Setup Steps
1
Clone the Repository
2
Install Backend Dependencies
3
Configure Backend Environment
Create a
.env file inside the backend/ directory by copying the example and filling in your credentials:4
Initialize the Turso Database
Create a new Turso database and generate an access token using the Turso CLI:Copy the URL and token into your
backend/.env. The database schema (tables for users, tenders, and analyses) initialises automatically the first time the backend starts — no manual migration step is required.5
Install Frontend Dependencies
6
Configure Frontend Environment
Create a
.env file inside the frontend/ directory:VITE_API_BASE_URL points the React app at your local backend. VITE_GOOGLE_CLIENT_ID is required only if you want to enable Google Sign-In locally; you can leave it blank to use email/password auth only.7
Start the Backend
Open a terminal in the The backend starts on port 3001 using
backend/ directory and run:tsx watch for hot-reload. You should see:8
Start the Frontend
Open a second terminal in the Vite starts the React application on port 3000.
frontend/ directory and run:9
Try the Application
Open http://localhost:3000 in your browser.
- Click Register and create a new account.
- Log in with your credentials.
- On the dashboard, upload
docs/Testing_docs/Pliego_Tender_IT_Security.pdfas the tender document. - Wait for the AI to extract all requirements — this typically takes 15–30 seconds.
- Once the tender analysis is complete, upload
docs/Testing_docs/Oferta_Offer_IT_Security.pdfas the proposal. - Review the compliance validation report, click any citation badge to inspect the source text, and export a PDF report.
The repository includes two sample documents in
docs/Testing_docs/ for end-to-end testing:Pliego_Tender_IT_Security.pdf— an IT Security public tender document. Use this to test the Tender Analysis flow.Oferta_Offer_IT_Security.pdf— a vendor offer for the same contract. Use this to test the Proposal Validation flow (requires a completed tender analysis first).
Running Tests
TenderCheck AI enforces strict quality gates across unit, integration, and end-to-end layers. Unit tests (Vitest — run frombackend/ or frontend/):