answer/ui
robin 3eff78775a refactor: modify characters 2022-09-29 12:10:37 +08:00
..
public initial commit 2022-09-27 17:59:05 +08:00
src refactor: modify characters 2022-09-29 12:10:37 +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 initial commit 2022-09-27 17:59:05 +08:00
.env.development initial commit 2022-09-27 17:59:05 +08:00
.env.production initial commit 2022-09-27 17:59:05 +08:00
.env.test initial commit 2022-09-27 17:59:05 +08:00
.eslintignore initial commit 2022-09-27 17:59:05 +08:00
.eslintrc.js initial commit 2022-09-27 17:59:05 +08:00
.gitignore initial commit 2022-09-27 17:59:05 +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 initial commit 2022-09-27 17:59:05 +08:00
README.md refactor: standard pages directory 2022-09-29 10:06:37 +08:00
commitlint.config.js initial commit 2022-09-27 17:59:05 +08:00
config-overrides.js chore: update config 2022-09-28 18:25:38 +08:00
package.json chore: add packageManager for corepack 2022-09-28 11:41:00 +08:00
pnpm-lock.yaml initial commit 2022-09-27 17:59:05 +08:00
tsconfig.json chore: update config 2022-09-28 18:25:38 +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 `answer repo` answer
$ cd answer
$ 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