After a bit of research in the past couple of days I'm come to a conclusion of a new tech stack that I like. Here are the details:
bunruntime, TypeScript for all source code- Using ElysiaJS for the server and routing
- Render HTML on server, use JSX for templating, use the React
renderToStringfunction to convert JSX to HTML - A single
index.tsxfor server logic, have apagesdirectory for templates - Styling is done with Tailwind
- Use
htmxfor any interactivity that's needed - Run
sqlitein cloud compute and locally, use thebun:sqlitestandard library and write raw SQL to query - Use cookies and sessions for auth
- Use cloud compute and nginx for deployment
- Run
prettierto format code
This repo is a great "starter" to initialise with all of these settings ready to go.