Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wanchaochao/react-blog
React Blog
https://github.com/wanchaochao/react-blog
antd antdesign react
Last synced: about 2 months ago
JSON representation
React Blog
- Host: GitHub
- URL: https://github.com/wanchaochao/react-blog
- Owner: Wanchaochao
- Created: 2018-12-20T02:06:14.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-04T00:58:41.000Z (over 4 years ago)
- Last Synced: 2024-11-05T11:00:38.132Z (3 months ago)
- Topics: antd, antdesign, react
- Language: JavaScript
- Size: 1.43 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## react-blog
PERSONAL BLOG[![stable](http://littlebug.oss-cn-beijing.aliyuncs.com/www.littlebug.vip/build-passing.svg)](https://github.com/wanchaochao/react-blog)
[![stable](https://img.shields.io/badge/react--blog-active-brightgreen.svg)](https://github.com/wanchaochao/react-blog)
[![stable](https://img.shields.io/badge/api-golang-blue.svg)](https://github.com/wanchaochao/blog_api)
[![stable](https://img.shields.io/badge/umi-%5E2.3.5-blue.svg)](https://umijs.org/)
[![stable](https://img.shields.io/badge/ant--design-%5E3.0.0-blue.svg)](https://ant.design/index-cn)
[![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/wanchaochao)online project:
Little Bug## INSTALL(安装)
```bash
# 安装umi(antd官方脚手架)
npm install umi -g
``````bash
# 安装依赖
npm install // cnpm install
```## 修改环境变量
```bash
cp .env.example .env
vim .env
publicPath = '静态资源路径' # 如果静态资源与打包后的index.html一起放在服务器上,不需要cdn、oss等加速可以忽略这一步
# aliyun oss 相关配置
ACCESS_KEY_ID = 'xxx'
ACCESS_KEY_SECRET = 'xxx'
REGION = 'xxx'
BUCKET = 'littlebug'
PREFIX = 'react.blog.vip'
```## RUN
```bash
umi dev
```## package
```bash
npm run build
```## CONFIG OPTIONS
```bash
# .umirc.jsproxy #代理配置
plugins #相关插件配置
routes #路由配置
theme # 主题配置
```