nextjs

command module
v0.0.0-...-838b099 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 5 Imported by: 0

README

Run Next.js (Client) on Go Server

Build a client-side Next.js web application and deploy it to a Go server.

Setup

  1. Run the application.

    cd web
    npm install
    npm run dev
    
  2. Build and export the application.

    cd web
    npm run build
    
  3. Build the go server.

    mkdir bin
    go build -o bin/server main.go
    cd bin
    ./server
    

    Alternatively, just run make run.

  4. Navigate to http://localhost:8000.

Reference

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL