Multi-database library system with a React frontend and a Node/Express backend.
frontend/: React + Vite UIbackend-node/: Express API (main backend)- Databases:
- PostgreSQL for core library data
- MongoDB Atlas for activity logs
- MySQL (Aiven) for audit trail
- Neo4j for graph features
- Install dependencies:
cd backend-node && npm installcd frontend && npm install
- Start both services:
- Use
start.bat - Or run manually:
cd backend-node && npm run devcd frontend && npm run dev
- Use
- Backend:
http://localhost:8000 - Frontend:
http://localhost:5173
Set these in frontend/.env if needed:
VITE_BACKEND_ORIGIN=http://localhost:8000VITE_API_BASE_URL=http://localhost:8000/api
Use migration-first workflow (not db push) from backend-node/:
- Create migration:
npm.cmd run prisma:migrate:dev -- --name <change_name> - Deploy migrations:
npm.cmd run prisma:migrate:deploy - Check migration state:
npm.cmd run prisma:migrate:status
Set both runtime and migration DB URLs in backend-node/.env:
DATABASE_URL(pooled runtime URL)DIRECT_DATABASE_URL(direct URL for migrations)
More details: backend-node/README.md