# yike.io
**Repository Path**: itdongdong/yike.io
## Basic Information
- **Project Name**: yike.io
- **Description**: 一刻社区前端源码
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2019-05-10
- **Last Updated**: 2024-12-12
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
论坛项目源码:https://yike.io, 基于 Vuejs 开发的 Laravel SPA 项目。
> 🏵后端源码:https://github.com/overtrue/api.yike.io
开源中国 Gitee 仓库:[](https://gitee.com/overtrue/yike.io)
> 🎬快速上手视频:[053. 优秀的开源社区——yike.io](https://laravel-china.org/courses/laravel-package/yikeio/2505)
## 安装
克隆后先安装依赖:
```shell
$ npm install
```
或者使用 yarn:
```shell
$ yarn install
```
跑测试服务:
```shell
$ npm run serve
```
## 配置
Copy the `.env.example` to `.env.[ENV]`:
```shell
# local
cp .env.example .env.local
# production
cp .env.example .env.production
```
其中有两个变量是你在安装后端时 `passport:install` 得到的 **Password Grant Client** 的 `id` 与 `secret`:
```
VUE_APP_AUTH_CLIENT_ID=
VUE_APP_AUTH_CLIENT_SECRET=
```
如果你忘记了,就去找 `oauth_clients` 表中找吧。
配置 [腾讯防水墙](https://007.qq.com/) ID , 需要跟后端一致
```env
# 腾讯防水墙配置
VUE_APP_CAPTCHA_ID_REGISTER=
VUE_APP_CAPTCHA_ID_PUBLISH=
```
## License
MIT