Build a client-side Next.js web application and deploy it to a Go server.
-
Run the application.
cd web npm install npm run dev
-
Build and export the application.
cd web npm run build
-
Build the go server.
mkdir bin go build -o bin/server main.go cd bin ./server
Alternatively, just run
make run
. -
Navigate to http://localhost:8000.