| 123456789101112131415161718192021222324252627282930313233343536373839 |
- 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.");
|