This guide will help you get started with the development of the project.
After cloning the repository, run the following command. This will install all dependencies as well as build all local packages.
cd ./ui pnpm install // This command will help you create the tools you need for good front-end code validation to ensure that the code style pnpm setup-lint
To start a development server, run pnpm start. now, your browser should already open automatically, and autoload http://localhost:3000. you can also manually visit it.
To switch API, you can modify the ui/.env.development file and then re-run pnpm start. If you‘re just using it yourself, we recommend creating a .env.development.local file that defines the address of the api you’re going to use.
pnpm setup-lint, which will help you initialize your husky and pre-commit files, which will automatically help you check your commits during the commit phase. Or just run pnpm lint and pnpm prettier to fix most code formatting.Ensure you have golang installed.
After cloning the repository, run the following command for build.
go mod download go run cmd/answer/main.go init -C ./answer-data
Visit http://localhost to see the installation page and complete the installation.
Run the following command to start the server.
go run cmd/answer/main.go run -C ./answer-data
We recommend that you follow uber's Golang Guidelines code style.