Skip to content

Repository files navigation

Elsewhere

A file-sharing application built with Next.js.

Users can upload and organize files and folders, generate sharing links, and manage their uploaded files. Anonymous file uploads are supported through guest sessions.

Tech Stack

  • Next.js
  • React
  • TypeScript
  • SCSS Modules
  • PostgreSQL
  • Prisma

Getting Started

Install dependencies

npm install

Environment variables

Create a .env file in the project root:

DATABASE_URL="postgresql://USER@localhost:5432/elsewhere"

Database setup

Generate Prisma Client:

npm run db:generate

Apply database migrations:

npm run db:migrate

Run the application

npm run dev

Open http://localhost:3000 in your browser.

Database

The application uses PostgreSQL with Prisma ORM.

Current core entities:

  • User — registered or anonymous user
  • Folder — user-owned collection of files
  • File — metadata for an uploaded file

Uploaded file contents are not stored directly in PostgreSQL. The database stores file metadata and references to external file storage.

Status

Work in progress.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages