Ask HN: What's your go-to tech stack (or services/products) for side projects?

3 points by pcloadletter_ ↗ HN
I know this depends quite a bit on the application, but is there a general stack you use that you know you can knock out something quickly and deploy on the cheap?

12 comments

[ 4.6 ms ] story [ 40.8 ms ] thread
Laravel. I don't even like PHP, but I will always bootstrap something with Laravel. It's just too easy.

I'm reading up Elixir/Phoenix to spice things up though.

Where do you typically deploy your Laravel projects? Forge?
Laravel is also my answer, and I use Forge + DigitalOcean / Hetzner. Yeah, I could do the same thing without Forge, but it just removes some friction, and I really appreciate that for a side project. I found it pretty easy to setup a basic CI / CD setup with Github + Forge, where my tests are run on every push to Github and then deployed if tests pass. I'm also using Filament for my admin panel and my user-facing UI, which has been great so far.
Next.js on Vercel

A complete frontend+backend page at /my_path with a file at /my_path/page.tsx with ~20 lines in a single file that handles backend request, DB query, backend response, frontend html templating and client-side JS interactivity.

Would you happen to have a code example, or something close to it, posted somewhere?
I included dynamic path/routes as a bonus.

  Internal path is app/[stateName]/page.tsx
  Public route is domainName.com/(any state name)
// Prisma is ORM that handles DB req/res

  async function getStateInfo(stateName: string) {
  const state: State | null = await prisma.state.findUnique({
    where: { name: stateName },
  });
  return state;
}

type StatePageParams = { params: { stateName: string }};

export default async function StatePage({ params }: StatePageParams) {

  const stateInfo = await getStateInfo(params.stateName);

  return (
      <main className="container flex flex-col items-center justify-center p-2">
        {stateInfo ? (
          <div>
              <h1 className="text-lg"> {stateInfo.name} </h1>
          </div>
          <InteractiveClientCard />
        ) : null}
      </main>
  );
}
Quickly? without blocking myself?

Nextjs + Hasura

I’m out of the game but I’d use Django. Not sure the simplest hosting these days.

Is there any kind of database service for no setup, tuning, or maintenance?

Lazarus/free Pascal for local GUI applications
JavaScript, Lit/Web components, indexedDB, PWA, Github Pages. No backend, no building.
- Django if I need authentication and something more long-term that won't change much.

- Nextjs if I need to do some quick demo or test something and having a frontend. (Also, I haven't tried the authentication with Nextjs, it might be as easy to use as the one Django provides).

- Astro/Vitepress for online documentation and static sites (I am testing both for small projects).

I’ve used Flask with Python to deploy a front end for my code. It was pretty straightforward and you can find boilerplate to start.