snoof

A small reddit client for browsing the top posts of r/all – built with typescript and react.

Desktop

IMG_4571

Mobile

giphy

Features

  • responsive
  • infinite loading
  • read/unread
  • app state preservation
  • support for all media types (photos/videos/text/links)

Development

Install

npm install

Run locally

Create a reddit app at https://www.reddit.com/prefs/apps (with http://localhost:3000/ as the redirect_uri) and add a .env.local file to the root directory with:

VITE_CLIENT_ID=client_id
VITE_CLIENT_SECRET=client_secret
VITE_REDIRECT_URL=http://localhost:3000/

npm run dev

Open http://localhost:3000

This application uses Vite for development.

Build

npm run build