Skip to content

Repository files navigation

fullstack-nix

A fullstack monorepo example with Nix, featuring a React frontend, Go backend, and AWS infrastructure.

Structure

  • frontend/ - React + Vite + SSR frontend
  • backend/example/ - Go HTTP server / Lambda backend
  • infra/ - AWS infrastructure (Nix/Terranix/OpenTofu)

Prerequisites

  • Nix + direnv
  • AWS credentials configured (for infra deployment)

Development

# Enter dev shell
direnv allow

# Frontend
cd frontend && pnpm install && pnpm dev

# Backend
cd backend/example && go run ./cmd/example

Build

# Frontend
nix build .#frontend
nix build .#frontend-lambda

# Backend
nix build .#backend-example
nix build .#backend-example-lambda

# Infrastructure
nix run .#infra-prod.plan

About

Example fullstack project with nix

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages