Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 811 Bytes

File metadata and controls

38 lines (25 loc) · 811 Bytes

Next.js + ASP.NET Sample

Test change 1

A minimal full-stack sample with a Next.js frontend and an ASP.NET Core (.NET 10) backend.

Prerequisites

Run the backend

cd backend
dotnet run

The API runs at http://localhost:5100.

Run the frontend

In a separate terminal:

cd frontend
npm install
npm run dev

Open http://localhost:3000, click Call Backend, and the message from the API will appear on the page.

API

Method Endpoint Response
GET /api/message Plain text greeting from backend