A modern full-stack application template with a Haskell backend and Next.js frontend.
.
├── backend/ # Haskell server application
│ ├── app/ # Application entry point
│ ├── src/ # Source code
│ └── test/ # Test files
└── frontend/ # Next.js React application
├── app/ # Next.js app directory
├── components/ # React components
├── stores/ # State management
└── public/ # Static assets
cd backend
stack buildcd frontend
npm install
# or
yarn installcd backend
stack runcd frontend
npm run dev
# or
yarn devThe frontend will be available at http://localhost:3000.
- Main application code is in
backend/src/Lib.hs - Entry point is in
backend/app/Main.hs - Tests are in
backend/test/
- Page routes are in
frontend/app/ - Reusable components are in
frontend/components/ - State management stores are in
frontend/stores/
cd backend
stack testcd frontend
npm testcd backend
stack build --copy-binscd frontend
npm run build
npm startSee LICENSE file for details.