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.
website/README.md

25 lines
581 B
Markdown

2 years ago
# Website 2
## Development
```bash shell
# 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
```bash shell
# 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
```