To run Fiora, you need to have Node.js (>= version 8.9.0) environment, MongoDB database, and qiniu.com cloud storage account (send picture and change avatar function neew use qiniu.com)
Clone the project to the local git clone https://github.com/yinxin630/fiora.git -b master
Installation dependencies, recommended yarn yarn
or npm install
Modify the configuration file:
- server config:
config/server.js
- client config:
config/client.js
- webpack config:
config/webpack.js
Most configuration items can be used with default values. Only qiniu.com related configurations need to be modified. Otherwise, picture cannot be sent, and user/group avatar cannot be modified
qiniu.com config introduce:
qiniuAccessKey
get from qiniu.com 个人面板 - 密钥管理 pageqiniuSecretKey
get from qiniu.com 个人面板 - 密钥管理 pageqiniuBucket
qiniu.com bucket nameqiniuUrlPrefix
qiniu.com bucket domain. get from qiniu.com 存储空间 - 内容管理 page. should be//xxx/
orhttp://xxx/
orhttps://xxx/
format
run server npm run server
run client npm run client
The browser will automatically open Fiora, and you can manually open the url http://localhost:8080
Link run on local
build client npm run build
move build result to public directory mv dist/fiora/* public
use pm2 start server export NODE_ENV=production && pm2 start server/main.js --name="fiora"
open page http://[服务端ip]:[fiora端口号]