answer/ui
shuai 8e10de39a0 fix: delete code 2022-11-10 14:00:31 +08:00
..
build ci(env): optimize env field in .env and .env.production 2022-10-19 12:35:09 +08:00
public refactor(root&header): optimize root and logo style 2022-10-14 10:22:07 +08:00
scripts refactor(i18n): remove fs.existsSync in resolvePresetLocales 2022-11-08 18:10:51 +08:00
src fix: delete code 2022-11-10 14:00:31 +08:00
.browserslistrc initial commit 2022-09-27 17:59:05 +08:00
.editorconfig initial commit 2022-09-27 17:59:05 +08:00
.env ci(env): optimize env field in .env and .env.production 2022-10-19 12:35:09 +08:00
.env.development ci(env): optimize env field in .env and .env.production 2022-10-19 12:35:09 +08:00
.env.production ci(env): optimize env field in .env and .env.production 2022-10-19 12:35:09 +08:00
.env.test ci(env): optimize env field in .env and .env.production 2022-10-19 12:35:09 +08:00
.eslintignore initial commit 2022-09-27 17:59:05 +08:00
.eslintrc.js feat(i18n): language resource migrate done! 2022-11-08 17:42:48 +08:00
.gitignore ci: restore .gitignore 2022-10-11 12:05:39 +08:00
.gitlab-ci.yml initial commit 2022-09-27 17:59:05 +08:00
.lintstagedrc.json initial commit 2022-09-27 17:59:05 +08:00
.prettierrc.json Fix windows endOfLine error 2022-11-01 15:16:21 +08:00
README.md docs(ui): update link in doc 2022-10-24 14:48:52 +08:00
commitlint.config.js feat(navigation): guard route done 2022-10-29 20:43:52 +08:00
config-overrides.js feat(i18n): language resource migrate done! 2022-11-08 17:42:48 +08:00
package.json feat(i18n): language resource migrate done! 2022-11-08 17:42:48 +08:00
pnpm-lock.yaml feat(i18n): language resource migrate done! 2022-11-08 17:42:48 +08:00
static.go optimize: the static files and handle 2022-09-29 12:37:02 +08:00
tsconfig.json refactor(ts): remove downlevelIteration flag 2022-11-09 11:49:44 +08:00

README.md

Answer

Answer is a modern Q&A community application

To learn more about the philosophy and goals of the project, visit Answer.

📦 Prerequisites

pnpm is required by building the Answer project. To installing the pnpm tools with below commands:

corepack enable
corepack prepare pnpm@v7.12.2 --activate

With Node.js v16.17 or newer, you may install the latest version of pnpm by just specifying the tag:

corepack prepare pnpm@latest --activate

🔨 Development

clone the repo locally and run following command in your terminal:

$ git clone git@github.com:answerdev/answer.git answer
$ cd answer/ui
$ pnpm install
$ pnpm run start

now, your browser should already open automatically, and autoload http://localhost:3000. you can also manually visit it.

👷 Workflow

when cloning repo, and run pnpm install to init dependencies. you can use project commands below:

  • pnpm run start run Answer web locally.
  • pnpm run build:dev build code for environment dev
  • pnpm run build:test build code for environment test
  • pnpm run build:prod build code for environment prod
  • pnpm run lint lint and fix the code style
  • pnpm run cz run git commit by commitizen

🖥 Environment Support

Edge
Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
last 2 versions last 2 versions last 2 versions last 2 versions

🧱 Build with