Simple GoLang Application with NextJS (Static HTML Exports) as Frontend.
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
- 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.)
- 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.