News for hackers. Stuff that matters.
Re:Ask HN: What's your go-to tech stack (or services/product... by dimitrisnl on Thursday May 30, 2024 @10:18AM (#40524037)
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.

Re:Ask HN: What's your go-to tech stack (or services/product... by pcloadletter_ on Thursday May 30, 2024 @10:25AM (#40524123)
Where do you typically deploy your Laravel projects? Forge?
Re:Ask HN: What's your go-to tech stack (or services/product... by reducesuffering on Thursday May 30, 2024 @01:45PM (#40526540)
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.

Re:Ask HN: What's your go-to tech stack (or services/product... by runjake on Thursday May 30, 2024 @05:50PM (#40529103)
Would you happen to have a code example, or something close to it, posted somewhere?
Re:Ask HN: What's your go-to tech stack (or services/product... by reducesuffering on Friday May 31, 2024 @02:42AM (#40532120)
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>
  );
}
Re:Ask HN: What's your go-to tech stack (or services/product... by bnchrch on Thursday May 30, 2024 @02:42PM (#40527237)
Quickly? without blocking myself?

Nextjs + Hasura

Re:Ask HN: What's your go-to tech stack (or services/product... by bilsbie on Thursday May 30, 2024 @03:20PM (#40527630)
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?

Re:Ask HN: What's your go-to tech stack (or services/product... by mikewarot on Thursday May 30, 2024 @05:13PM (#40528778)
Lazarus/free Pascal for local GUI applications
Re:Ask HN: What's your go-to tech stack (or services/product... by meiraleal on Thursday May 30, 2024 @10:37PM (#40530940)
JavaScript, Lit/Web components, indexedDB, PWA, Github Pages. No backend, no building.
Re:Ask HN: What's your go-to tech stack (or services/product... by c-nik on Saturday June 01, 2024 @06:43AM (#40544525)
- 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).

Re:Ask HN: What's your go-to tech stack (or services/product... by interbased on Sunday June 02, 2024 @10:07AM (#40554245)
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.