.agents
feat: implement motion-based micro-interactions across newspaper feed and article components.claude
feat: implement motion-based micro-interactions across newspaper feed and article componentsapp
docs: rewrite README with project details and update global CSS accent and blur variablescomponents
feat: enhance file upload handling with error management and loading states across multiple componentslib
feat: add author and tag filters to admin dashboard, implement adaptive column layout for articles, and update dependenciespretext-skills
refactor: replace RichTextEditor with DirectPreviewEditor and add comprehensive pretext documentation and extensionspublic
feat: implement core platform features including post creation, authentication, user profiles, and newspaper feed layoututils
feat: implement admin dashboard, add saved posts feature, and enhance file upload validation with toast notifications.gitignore
Initial commit from Create Next AppAGENTS.md
Initial commit from Create Next Appbun.lock
chore: replace isomorphic-dompurify with sanitize-html for HTML sanitizationCLAUDE.md
Initial commit from Create Next Appdrizzle.config.ts
fix: conditionally load .env.local only when DATABASE_URL is missing in drizzle configeslint.config.mjs
Initial commit from Create Next Appnext.config.ts
feat: enhance file upload handling with error management and loading states across multiple componentspackage.json
chore: replace isomorphic-dompurify with sanitize-html for HTML sanitizationpostcss.config.mjs
Initial commit from Create Next AppREADME.md
docs: rewrite README with project details and update global CSS accent and blur variablesskills-lock.json
feat: implement motion-based micro-interactions across newspaper feed and article componentstsconfig.json
Initial commit from Create Next Appvercel.json
vercel jsonUniNews
UniNews is a university news platform designed to help students and faculty share stories, follow writers, and engage with their campus community.
Tech Stack
- Framework: Next.js (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- Database: PostgreSQL with Drizzle ORM
- Authentication: Supabase & Iron Session
- Editor: Tiptap
Features
- Social News Feed: A ranked feed of campus stories and news.
- Rich Text Editor: Integrated Tiptap-based direct preview editor for intuitive article creation.
- User Profiles: Follow writers and build an audience within the campus.
- Engagement: Bookmark, tag, and interact with posts across the platform.
- Responsive Layout: A modern, newspaper-inspired masthead and article card design.
Getting Started
Prerequisites
Ensure you have the following installed:
- Node.js (v18 or higher)
- PostgreSQL database
- Supabase account and project
Installation
-
Install dependencies
bun install -
Configure Environment Variables Create a
.env.localfile in the root directory and add the necessary environment variables. Required variables include your database connection URL and Supabase credentials.DATABASE_URL=postgres_instance_url SESSION_SECRET=your_session_secret NEXT_PUBLIC_SUPABASE_URL=your_url NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=ur_publisher_key SUPABASE_SERVICE_ROLE_KEY=service_role_key -
Initialize the Database Push the schema to your PostgreSQL database:
npx drizzle-kit push -
Start the Development Server
bun run devOpen
http://localhost:3000in your browser.
Project Structure
app/: Next.js App Router pages and API routes.components/: Reusable React components including the newspaper layouts, text editor, and UI elements.lib/: Core application logic, database actions, feed ranking algorithms, and authentication.utils/: Helper utilities and configuration files.