Skip to content

About

A mediocre Pastebin, but for files.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

69 Commits

Folders and files

Repository files navigation

PostOffice

PostOffice is a full-stack web application designed for storing and managing file metadata and contents securely. It features a React (Vite) frontend and a Python (FastAPI) backend. The backend manages file storage locally and stores metadata in a database (default SQLite, but supports PostgreSQL), leveraging Supabase Auth for user authentication.

Previews

Screenshot 2 Screenshot 3 Screenshot 4 Screenshot 5

Tech Stack

  • Frontend: React, Vite, TailwindCSS
  • Backend: Python, FastAPI, SQLModel (SQLite/PostgreSQL)
  • Authentication: Supabase Auth (JWT via JWKS)
  • Infrastructure: Docker, NGINX

Running with Docker

The easiest way to run the entire application is via Docker and Docker Compose. This starts up the frontend, the API backend, and an NGINX reverse proxy.

  1. Create a .env file in the backend/ directory following the instructions in backend/README.md to configure your Supabase instance.

  2. Build and start the containers from the root directory:

    docker-compose up --build
  3. Access the application:

Project Structure

  • frontend/ - React application. Includes proxy setup to map /api to the backend.
  • backend/ - FastAPI service using uv for dependency management. See backend/README.md for detailed Supabase configuration, DB setup, and endpoints.
  • nginx/ - NGINX configuration for routing HTTP traffic correctly between the frontend container and the backend API container.

Local Development

If you prefer to run services individually outside of Docker:

Backend:

cd backend
uv sync
uv run fastapi dev app/main.py

Frontend:

cd frontend
npm install
npm run dev

About

A mediocre Pastebin, but for files.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages