MyFavStuff/Inputs/Tech stack for MyFavStuff.md

1.5 KiB

The tech stack for MyFavStuff should be based on:

  • Deployments: Coolify.
  • The application should be dockerized because that's how it will be deployed on Coolify.
  • Frontend: Next.js with React
  • Styling: Tailwind CSS + ShadCN UI
  • Database: Supabase
  • Authentication: basic_auth with Caddy (reverse proxy) to get started with (You shouldn't do anything about this yet)

Coding pattern preferences

  • Always prefer simple solutions
  • Avoid duplication of code whenever possible, which means checking for other areas of the codebase that might already have similar code and functionality
  • Write code that takes into account the different environments: dev, test and prod
  • You are careful to only make changes that are requested or you are confident that all changes are well understood and related to the change being requested
  • When fixing an issue or bug, do not introduce a new pattern or technology without first exhausting all options for the existing implementation. And if you finally do this, make sure to remove the old implementation afterwards so we don't have duplicate logic.
  • Keep the codebase very clean and organized
  • Avoid writing scripts in files if possible, especially if the script is likely only to be run once
  • Avoid having files over 200-300 lines of code. Refactor at that point
  • Mocking data is only needed for test, never mock data for dev or prod
  • Never add stubbing or fake data patterns to code that affects the dev or prod environments
  • Never overwrite my .env file without first asking and confirming