https://github.com/lgiki/wails-template-nextjs
A wails template with Next.js
https://github.com/lgiki/wails-template-nextjs
nextjs typescript wails wails-react wails-template
Last synced: 4 months ago
JSON representation
A wails template with Next.js
- Host: GitHub
- URL: https://github.com/lgiki/wails-template-nextjs
- Owner: LGiki
- License: mit
- Created: 2022-05-12T11:28:01.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-07T05:28:31.000Z (over 2 years ago)
- Last Synced: 2025-04-30T09:55:15.936Z (5 months ago)
- Topics: nextjs, typescript, wails, wails-react, wails-template
- Language: JavaScript
- Homepage:
- Size: 276 KB
- Stars: 56
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wails template Next.js

A [Wails](https://github.com/wailsapp/wails) template with [Next.js](https://github.com/vercel/next.js) and TypeScript.
You can develop applications using Next.js and then use Wails to package your application as a cross-platform program that is compatible with Linux, macOS and Windows. And you can easily call Go methods from JavaScript.
This project uses `next export` to export the Next.js application to static HTML, and then uses Wails to package the static files into a program, so some Next.js features are unsupported, see [https://nextjs.org/docs/advanced-features/static-html-export](https://nextjs.org/docs/advanced-features/static-html-export) for details.
# Screenshot

# Getting Started
## Prerequisites
- Go 1.17+
- Node JS
- NPM
- [Wails CLI](https://wails.io/docs/next/gettingstarted/installation/)## New Project
You can create a new wails project using:
```bash
wails init -n "Your Project Name" -t https://github.com/LGiki/wails-template-nextjs
```## Building
If you modified the Go code, you need to run `wails generate module` to generate the wailsjs modules first. Then using `wails build` to build your application.
You can run `wails build --help` or go to [https://wails.io/docs/next/reference/cli#build](https://wails.io/docs/next/reference/cli#build) to view all build flags.
## Live Development
To run in live development mode, run `wails dev` in the project directory.