Project Page
This repo now includes a Supabase-backed admin portal for:
- Admin login at
/admin/login - News CRUD at
/admin/news - People CRUD at
/admin/people - Projects CRUD at
/admin/projects - Funding CRUD at
/admin/funding - Research area CRUD at
/admin/research-areas - Editing research keywords, DBLP PIDs, profile metadata, project funding, assigned people, related article titles, and research area images
- Create a Supabase project.
- Run the SQL in supabase/schema.sql in the Supabase SQL editor.
- Create a
.envfile and fill in these values after the "=" using your Supabase API keys.VITE_SUPABASE_URL=VITE_SUPABASE_ANON_KEY=SUPABASE_SERVICE_ROLE_KEY=
- In Supabase Auth, enable Email/Password login (it may already be enabled).
- Create your first user in Supabase Auth.
- In the
profilestable, set that user'sis_admintotrue. This user may now use the admin portal for the website.
- The public site still falls back to the local .json files when Supabase is not configured or unavailable.
- The public
/projectsroute now depends on Supabase and no longer falls back to a local JSON file. - The public
/researchpages can now read from Supabase-backed research areas and still fall back topublic/research_areas.json. - News images, profile images, project images, and research area images are stored as string paths and can point to Supabase Storage or filepaths in the project.
- The current .json and image data can be uploaded to Supabase at any time, as long as
.envis configured, usingnpm run import:supabase. The import function now includesposts.json,members.json,funding.json, andresearch_areas.json. - Test this project by first using
npm ithennpm run dev