Skip to content

thisliu/yike.io

 
 

Repository files navigation

论坛项目源码:https://yike.io, 基于 Vuejs 开发的 Laravel SPA 项目。

🏵后端源码:https://github.com/overtrue/api.yike.io

开源中国 Gitee 仓库:Fork me on Gitee

🎬快速上手视频:053. 优秀的开源社区——yike.io

安装

克隆后先安装依赖:

$ npm install

或者使用 yarn:

$ yarn install 

跑测试服务:

$ npm run serve

配置

Copy the .env.example to .env.[ENV]:

# local
cp .env.example .env.local

# production
cp .env.example .env.production

其中有两个变量是你在安装后端时 passport:install 得到的 Password Grant Clientidsecret

VUE_APP_AUTH_CLIENT_ID=
VUE_APP_AUTH_CLIENT_SECRET=

如果你忘记了,就去找 oauth_clients 表中找吧。

配置 腾讯防水墙 ID , 需要跟后端一致

# 腾讯防水墙配置
VUE_APP_CAPTCHA_ID_REGISTER=
VUE_APP_CAPTCHA_ID_PUBLISH=

License

MIT

About

一刻社区前端源码

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 56.7%
  • JavaScript 33.8%
  • CSS 8.7%
  • Other 0.8%