liveBook · Manning

Next.js

As explained in Build Financial Software with Generative AI (From Scratch)

Next.js is a React-based web framework for building full-stack applications with features such as routing, rendering, and optimization.

Next.js is a full-stack React framework for building production-ready web applications. It sits on familiar web foundations—HTML, CSS, and the DOM—while React supplies reusable components, state, and hooks for interface development. A dashboard can use it as the user-facing layer for file uploads, data views, visualizations, and API-backed interactions. section 6.1 section 1.4

Its built-in features address common application needs: file-system routing, layouts, nested routes, error handling, client-side rendering (CSR), server-side rendering (SSR), async data fetching, styling choices, and image, font, and script optimization. These features let a small interface grow toward a larger application without replacing the framework. section 6.1

A practical setup and development path is:

  • Install Node.js, create a project with npx, run the default application, and verify that it starts correctly. section 6.9
  • Choose a UI starting point such as a Material UI template, then install dependencies for components, charts, and API calls. section 6.9 section 6.1
  • Use TypeScript where possible to make types explicit and catch errors during development. section 6.9
  • Develop pages against hardcoded data or mocked APIs when the backend is unavailable, then connect dynamic API data later. section 6.9
  • Test UI behavior and accessibility with Jest and ARIA roles; package the dashboard in Docker with needed environment variables. section 6.9

Add an uploads route

File-based routing maps a folder structure to a URL. Creating app/uploads/page.tsx creates an uploads page reachable at /uploads. Begin with a placeholder such as “Hello, Uploads!” to confirm routing before designing a drag-and-drop upload interface or implementing file transfer. section 6.2

Listing 6.2 Our directory structure for the upload page
src/
├─ app/
│  ├─ uploads/            #1
│  │  ├─ page.tsx          #1

Use the directory tree as a reference for how an uploads folder and page.tsx define the /uploads route. section 6.2

Next.js is a current preference rather than a fixed requirement: a React dashboard could instead use another React framework, Angular, or plain HTML, CSS, and JavaScript. Select the interface technology that fits the team’s needs, while recognizing that production systems may impose technology choices. section 12.3 section 1.4

How Build Financial Software with Generative AI (From Scratch) covers it

How deep it goes
Explains setup, routing, rendering options, styling, testing, mocked APIs, and Docker deployment, while deferring actual file-upload implementation.
Examples
Uses an ACH dashboard and an app/uploads/page.tsx placeholder route that displays “Hello, Uploads!”.
What it assumes
Assumes basic HTML, CSS, DOM, and Node.js awareness while introducing React components, state, hooks, and Next.js setup.
What you can do after
Build it from scratch by initializing a Next.js dashboard, adding routed pages, testing UI behavior, and deploying a containerized interface.
How it connects
Connects React, TypeScript, Node.js, Material UI, Jest, WireMock, Docker, APIs, CSR, and SSR.

Also explained in

Compare how 3 books explain Next.js →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build Financial Software with Generative AI (From Scratch). The section links point to the parts of the book it draws on.