Database Setup
Leyu uses PostgreSQL as the primary database.
Steps
- Install PostgreSQL v12+
- Create a database:
CREATE DATABASE leyu_db;
Configure .env in Backend:
DATABASE_URL="postgresql://username:password@localhost:5432/leyu_db"
Run migrations & seed data:
npm run migration:run
npm run seed