Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.81 KB

File metadata and controls

54 lines (38 loc) · 1.81 KB

Hack Club Photos Banner

Hack Club Photos

Next.js TypeScript Drizzle ORM PostgreSQL Tailwind CSS

No more digging for Google Photos Links, photos.hackclub.com stores photos in original quality, forever!

How it works

  • Storage: We use S3-compatible storage (AWS, R2, MinIO, etc) in prod we use Hetzner!
  • Database: Postgres with Drizzle ORM
  • Auth: Hack Club OAuth

Running it for Dev

You'll need Node 24+, Bun, a Postgres DB, and an S3 bucket. Redis is required for distributed rate limits in production.

  1. Get the code

    git clone https://github.com/hackclub/photos.git
    cd photos
     bun install
  2. Set up env

    cp .env.example .env
    # Fill in your creds!
  3. Run migrations

    bun run db:migrate
  4. Run dev

    bun run dev

Production deploys should run bun run db:migrate as a release step before serving the new application version. The Vercel build itself does not connect to Postgres.

License

MIT


Made with ❤️ by Hack Clubbers from all around the world.