You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Source code/DATA_MANAGEMENT_README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ Source code/src/data/
22
22
2.**Add a new entry** by copying an existing object and updating its fields, or edit/remove existing entries as needed.
23
23
- Each file contains an array of objects. Each object represents a person, event, or project.
24
24
- Make sure to follow the structure of the existing objects (field names, types, etc.).
25
+
- You should add images to 'code/src/public/media' and link the database to them.
25
26
26
27
3.**Save the file.**
27
28
@@ -45,9 +46,8 @@ Open `peopleData.ts` and add a new object to the `peopleData` array:
45
46
46
47
## Tips
47
48
-**Use unique IDs** for each entry.
48
-
-**Image paths** should point to files in the `public/media/` or `public/lovable-uploads/` folders.
49
-
-**No need to restart the dev server** if it's already running; just refresh the page to see changes.
49
+
-**Image paths** should point to files in the `public/media/` folder. When typing the image path it will use 'public' as the source directory. So to point to media you only need to type '/media'
50
50
-**Type safety:** If you make a typo or use the wrong field, TypeScript will show an error during build or in your editor.
51
51
52
52
## That's it!
53
-
All data is managed through these files. No database or CMS is required—just edit, save, and build!
53
+
All data is managed through these files. No database or CMS is required—just edit, save, and build!
0 commit comments