Skip to content

About

A catalogue to view/upload uploaded items (like research papers) with next.js front & backend and supabase.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Research Repository

A modern, full-stack research paper repository built with Next.js and Supabase. The platform allows administrators to upload, organize, and publish research papers while providing a clean, searchable interface for students, faculty, and the public.

Next.js TypeScript Supabase TailwindCSS


Features

Public Repository

  • Browse published research papers
  • Full-text search
  • Advanced filtering
  • Individual paper pages
  • Embedded PDF viewer
  • PDF downloads
  • Responsive design
  • SEO-friendly paper URLs

Admin Dashboard

  • Secure administrator authentication
  • Upload PDFs to Supabase Storage
  • Upload cover images
  • Create and edit papers
  • Delete papers
  • Automatic slug generation
  • Paper publishing workflow

Metadata

Each paper supports:

  • Title
  • Abstract
  • Authors
  • Publisher
  • Publication Type
  • Publication Year
  • Category
  • Language
  • DOI
  • Keywords
  • Citation Count
  • View Count
  • Open Access
  • Peer Reviewed
  • Cover Image
  • PDF File

Tech Stack

Technology Purpose
Next.js 15 Full-stack framework
React UI
TypeScript Type safety
Tailwind CSS Styling
Supabase Database, Authentication & Storage
PostgreSQL Relational database
Server Actions Form handling

Screenshots

Library

Browse and search published papers.

Add screenshot here


Paper Page

Displays metadata alongside an embedded PDF viewer.

Add screenshot here


Admin Dashboard

Manage and publish papers.

Add screenshot here


Project Structure

src/
│
├── app/
│   ├── admin/
│   ├── papers/
│   └── layout.tsx
│
├── components/
│   ├── Header.tsx
│   ├── Footer.tsx
│   ├── PaperCard.tsx
│   └── ...
│
├── actions/
│   ├── uploadPaper.ts
│   ├── editPaper.ts
│   └── deletePaper.ts
│
├── lib/
│   ├── supabase/
│   ├── getPapers.ts
│   ├── slugGenerator.ts
│   └── ...
│
└── styles/

Database

The platform stores metadata in PostgreSQL while storing uploaded files in Supabase Storage.

Storage Buckets

papers/
covers/

Main Tables

  • papers
  • admins

Running Locally

Clone

git clone https://github.com/yourusername/repository.git
cd repository

Install

npm install

Environment Variables

Create a .env.local

NEXT_PUBLIC_SUPABASE_URL=YOUR_URL
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=YOUR_ANON_KEY

SUPABASE_SERVICE_ROLE_KEY=YOUR_SERVICE_ROLE_KEY

Start

npm run dev

Open

http://localhost:3000

Security

  • Row Level Security (RLS) enabled
  • Public users have read-only access
  • Uploads restricted to administrators
  • Database modifications performed through secure Server Actions
  • Service Role Key never exposed to the client

Roadmap

  • Public paper library
  • Admin dashboard
  • PDF uploads
  • Cover image uploads
  • Embedded PDF viewer
  • Advanced search
  • Filtering & sorting
  • Citation export (APA / MLA / BibTeX)
  • Author profile pages
  • Department pages
  • Related papers
  • Reading history
  • Analytics dashboard
  • PDF.js viewer
  • Dark mode

Design Goals

The platform is designed to be:

  • Fast
  • Responsive
  • SEO-friendly
  • Easy to maintain
  • Scalable
  • Accessible
  • Optimized for academic content

License

This project is licensed under the MIT License.


Developed using Next.js, Supabase, and TypeScript.

About

A catalogue to view/upload uploaded items (like research papers) with next.js front & backend and supabase.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages