tududi/backend/scripts/seed-dev-data.js
Antonis Anastasiadis c24bff1882
Parallelize test running (#166)
* Allow specifying DB file explicitely.

* Export config getter/setter instead of object

Allows dynamically changing configuration

* Remove maxWorker Jest limit, parallelize tests

* Remove unnecessary slow step in Dockerfile.

* Correct error response during login

* Fix setting DB permissions in docker entrypoint

---------

Co-authored-by: antanst <>
2025-07-16 13:27:57 +03:00

12 lines
380 B
JavaScript

#!/usr/bin/env node
const path = require('path');
const { seedDatabase } = require('../seeders/dev-seeder');
const { setConfig, getConfig } = require('../config/config');
const config = getConfig();
console.log('🌱 Starting development data seeding...');
console.log(`📁 Database: ${config.dbFile}`);
console.log(`🌍 Environment: ${config.environment}`);
seedDatabase();