import { database } from "../assets/database.js"; const sample = { "project": { "name": "Sample test project", "description": "This is super simple test project." }, "submissions": { "First": { "description": "This is first test submission.", "picture": "thumbnail_1.png", "elements": { "what": {}, "is": {}, "it": {} } }, "Second": { "description": "This is second test submission.", "picture": "thumbnail_2.png", "elements": { "mini": {}, "maxi": {} } } } }; console.log("Loading database..."); try { const test_db = new database(sample); } catch (exception) { console.error(exception); } console.log("Database loaded.");