Skip to content

KonstantinSimeonov/pastes

Repository files navigation

Pastes

How to run

npm i # node 16 required
docker compose up -d # start postgres
npm run dev

Deployed at pastes.konsimeonov.lol.

TODOs

  • move off vercel into aws on express (function cold start times are awful)
  • add ci for prod migrations (don't like this but why not give it a spin)
  • add api/db/page tests
    • refactor paste update
  • fix api handler HOFs
    • add api handler for auth
    • add getServerSideProps HOFs for auth and validation
    • mw3 needs tests (as well as renaming)
    • fix the mw3 implementation types
  • add cache for most recent pastes instead of querying the db
  • change file content type to text
  • extract components from some pages
  • source light/dark theme from user prefs
  • fix user page
  • fix user stats
    • refresh materialized view periodically
    • don't crash if materialized refresh fails
      • capture exception with sentry
  • put expiry date on pastes with anonymous authors
  • add file count limit per paste
  • add download file button
  • add discover page with pagination and stuff
  • think about storing file contents in S3
  • add markdown rendering
    • add preview button when writing markdown file
  • experiment with some kind of editor for editing/creating pastes
  • add an embed functionality
  • fix most recent clicks
  • group languages in user stats
    • look for a general solution without hardcoding
  • generate fancy meta tags
    • for pastes/[id] page
      • maybe even render pastes to images?
  • fix mobile view
  • tune most recent pastes
    • some sort of primitive server-side cache
    • tune react-query opts
  • add loading skeleton for most recent - just added a loader
  • remove withClient and just use prisma client
  • have a look at sentry
  • add a footer

About

gists.github.com clone with some additional neat functionality hosted at https://pastes.konsimeonov.lol

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published