Add a simple go server to serve the frontends

This commit is contained in:
2024-06-19 22:22:01 -04:00
parent c57fc11c5e
commit 58e435a7bd
5 changed files with 80 additions and 0 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
all: build
nil:
reactNextJS/out/*: reactNextJS/app/* reactNextJS/*.js reactNextJS/*.json
cd reactNextJS && npm run build
nextjs: reactNextJS/out/*
serverdeps: nextjs *.go reactNextJS/addToServer.go
build: serverdeps
go build server.go
run: serverdeps
go run server.go
air: nextjs nil
air server.go
.PHONY: all build nextjs serverdeps run air nil