Running Answer backend for development

Viewed 71

I've tried following these instructions to run the backend:

I'm using go version go1.21.10 darwin/arm64

After cloning the repository and entering the project directory, go mod download seems to work fine.

go run cmd/answer/main.go init -C ./answer-data also seems to work, printing out the following:

install all initial environment done
[SUCCESS] answer installation service will run at: http://localhost:80/install/

But when I access http://localhost:80/install/ in my browser, it says page not found. And in my terminal, the backend outputs the following error:

2024-05-22 22:30:26.514	ERROR	install/install_server.go:79	open build/index.html: file does not exist
1 Answers

You need to build the frontend first.

make ui