You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Antonio De Lucreziis 2b47950556 | 2 years ago | |
---|---|---|
cmd | 2 years ago | |
frontend | 2 years ago | |
meta | 2 years ago | |
model | 2 years ago | |
services | 2 years ago | |
sl | 2 years ago | |
.gitignore | 2 years ago | |
.npmrc | 2 years ago | |
Makefile | 2 years ago | |
README.md | 2 years ago | |
go.mod | 2 years ago | |
go.sum | 2 years ago | |
package.json | 2 years ago | |
pnpm-lock.yaml | 2 years ago | |
server.js | 2 years ago | |
vite.config.js | 2 years ago |
README.md
Website 2
Development
# First start in background the go backend on port :4000
$ go run -v ./cmd/server
# The start the frontend server on port :3000
$ pnpm run dev
Production
# scaffold the whole server without actually starting the server, this will generate a JSON file containing all routes mount-points for the ViteJS build
$ go run -v ./cmd/build
# build all frontend pages and assets
$ pnpm run build
# Now we have all the files and could also ship everything in a single binary
$ go build -o ./out/bin/server ./cmd/server