answer/ui/README.md

63 lines
4.1 KiB
Markdown
Raw Normal View History

2022-09-27 17:59:05 +08:00
# Answer
`Answer` is a modern Q&A community application ✨
2022-10-24 14:48:52 +08:00
To learn more about the philosophy and goals of the project, visit [Answer](https://answer.dev).
2022-09-27 17:59:05 +08:00
### 📦 Prerequisites
2022-09-28 10:06:18 +08:00
- [Node.js](https://nodejs.org/) `>=16.17`
2022-09-27 17:59:05 +08:00
- [pnpm](https://pnpm.io/) `>=7`
pnpm is required by building the Answer project. To installing the pnpm tools with below commands:
```bash
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:
```bash
corepack prepare pnpm@latest --activate
```
## 🔨 Development
clone the repo locally and run following command in your terminal:
```shell
$ git clone git@github.com:answerdev/answer.git answer
$ cd answer/ui
2022-09-27 17:59:05 +08:00
$ pnpm install
$ pnpm start
2022-09-27 17:59:05 +08:00
```
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` build Answer for production
2022-09-27 17:59:05 +08:00
- `pnpm run lint` lint and fix the code style
2022-09-27 17:59:05 +08:00
## 🖥 Environment Support
2022-09-29 10:06:37 +08:00
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br>Safari |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| last 2 versions | last 2 versions | last 2 versions | last 2 versions |
2022-09-27 17:59:05 +08:00
2022-10-24 14:48:52 +08:00
## 🧱 Build with
2022-09-27 17:59:05 +08:00
- [React.js](https://reactjs.org/) - Our front end is a React.js app.
- [Bootstrap](https://getbootstrap.com/) - UI library.
- [React Bootstrap](https://react-bootstrap.github.io/) - UI Library(rebuilt for React.)
- [axios](https://github.com/axios/axios) - Request library
- [SWR](https://swr.bootcss.com/) - Request library
- [react-i18next](https://react.i18next.com/) - International library
- [zustand](https://github.com/pmndrs/zustand) - State-management library