It shows an example of embedding a frontend app (here React.js) into compiled Go application
- Go
- MongoDB
- Node.js
go mod tidy
cd frontend
npm i
go run .
or install air and run air
go build -o build
cd build
APP_PORT=4000 DB_URI=127.0.0.1:27017 DB_NAME=api ./go_api_and_react