mirror of https://gitee.com/answerdev/answer.git
4.3 KiB
4.3 KiB
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 environmentdev
pnpm run build:test
build code for environmenttest
pnpm run build:prod
build code for environmentprod
pnpm run lint
lint and fix the code stylepnpm run cz
rungit commit
bycommitizen
🖥 Environment Support
Edge / IE |
Firefox |
Chrome |
Safari |
---|---|---|---|
Edge, IE11 | last 2 versions | last 2 versions | last 2 versions |
Build with
- React.js - Our front end is a React.js app.
- Bootstrap - UI library.
- React Bootstrap - UI Library(rebuilt for React.)
- axios - Request library
- SWR - Request library
- react-i18next - International library
- zustand - State-management library