reloadlife / nextgo

NextGO: a GoLang Application that uses NextJS as frontend.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NextGO: NextJS + GoLang

Simple GoLang Application with NextJS (Static HTML Exports) as Frontend.

Usage

This is a Simple Golang Application, you just compile it and run it.

go build -o nextgo cmd/main.go
./nextgo 
  • Reminder that you have to Build your front-end application before you build the GoLang Application.
cd nextjs
npm install # install dependencies (haha node_modules are going to eat your disk space)
cp next.config.build.js next.config.js # to use the build config, since we're using NextJS 13 (experimental) and exporting requires special next.config
npm run export

Development

  • you're a developer like me, so go figure it out yourself.
  • just a thing
cd nextjs
cp next.config.dev.js next.config.js # to replace the development configuration for development (we're using NextJS 13 (experimental) and TurboPack cuz we love it faaaast.)

TODO

  • Add a Database ORM (Most likely beeorm)
  • add a json/yaml/env/... parser for configuration
  • add a custom logger
  • you want more? create an issue, and I will add it here, and someone (or me) will do it.

About

NextGO: a GoLang Application that uses NextJS as frontend.


Languages

Language:Go 61.8%Language:JavaScript 22.0%Language:Dockerfile 9.3%Language:TypeScript 6.9%