The code repository for the official website of Cambridge University's Artificial Intelligence in Medicine Society, found at www.cuaim.co.uk.
- NextJS as the React framework;
- PostHog for web analytics;
- Radix Themes as the UI library;
- Radix Icons as the icon library;
- Framer Motion as the animation library
- MDX as markup language for prose content;
- Zod for data declaration and validation;
- Sonner for rendering toasts; and
date-fnsfor date manipulation;
The directories inside the src folder are structured as follows:
analytics: analytics components;app: NextJS app router directory;components: UI components;constants: constants;css: CSS files;interfaces: Typescript interfaces;schemas: zod schemas for data validation; andutils: utility functions.
- Clone this repository.
- Add local environment variables (refer to the schema).
- Run
pnpm ito install all required dependencies. - Run
pnpm devto run the local development server.
NEXT_PUBLIC_POSTHOG_KEY: The public key for PostHog analytics.NEXT_PUBLIC_POSTHOG_HOST: The host for PostHog analytics.GOOGLE_CLOUD_API_KEY: The API key for Google Cloud services.GOOGLE_CALENDAR_ID: The ID of the public Google calendar to pull event data from.GOOGLE_CALENDAR_SHAREABLE_LINK: The shareable link to visit the public Google Calendar.
Commits to this repository follow the Conventional Commits format.
© Tahmid Azam (ta549@cam.ac.uk) 2024