add windows instructions

This commit is contained in:
maddalax 2024-11-01 07:29:15 -05:00
parent bf9cf2bf96
commit 7d04d8861f

View file

@ -25,6 +25,9 @@ func Installation(ctx *h.RequestContext) *h.Page {
HelpText("If you have not read the htmx docs, please do so before continuing, many of the concepts htmgo uses will become clearer."), HelpText("If you have not read the htmx docs, please do so before continuing, many of the concepts htmgo uses will become clearer."),
StepTitle("1. Install htmgo"), StepTitle("1. Install htmgo"),
ui.SingleLineBashCodeSnippet(`GOPROXY=direct go install github.com/maddalax/htmgo/cli/htmgo@latest`), ui.SingleLineBashCodeSnippet(`GOPROXY=direct go install github.com/maddalax/htmgo/cli/htmgo@latest`),
Text("If you are using Windows, you will need to use the following command instead:"),
ui.SingleLineBashCodeSnippet(`set GOPROXY=direct && go install github.com/maddalax/htmgo/cli/htmgo@latest`),
HelpText("Make sure GOPROXY=direct is set, otherwise you may have issues."),
StepTitle("2. Create new project"), StepTitle("2. Create new project"),
ui.SingleLineBashCodeSnippet(`htmgo template`), ui.SingleLineBashCodeSnippet(`htmgo template`),
HelpText("this will ask you for a new app name, and it will clone our starter template to a new directory it creates with your app name."), HelpText("this will ask you for a new app name, and it will clone our starter template to a new directory it creates with your app name."),