command
module
Version:
v0.0.0-...-838b099
Opens a new window with list of versions in this module.
Published: Oct 3, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Run Next.js (Client) on Go Server
Build a client-side Next.js web application and deploy it to a Go server.
Setup
-
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.
Reference
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.