• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

hh-blog-react: 打造一个完整的博客系统

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

hh-blog-react

开源软件地址:

https://gitee.com/gaojianhua/hh-blog-react

开源软件介绍:

Happy hacking Blog

预览地址预览图1预览图2

目标

打造一个完整的博客系统,包括以下四部分
1.博客前端展示(React+antd)
2.后台数据管理系统(Vue3+element(vuetify))
3.后端接口(nodejs)
4.微信小程序

使用方法

1.在根目录 yarn install or npm install
2.执行 yarn start or npm run start

技术栈

使用Flex进行布局
配置路径别名使用: carco
路由使用react-router来管理
使用react-router-config集中式路径映射表管理
使用styled-components+普通的css编写样式
使用axios发送网络请求
项目全面拥抱React Hooks
项目组件库使用: ant design
使用immutable对项目reducer中state进行管理
使用redux-immtable对根目录reducer中state进行管理
项目使用redux-thunk中间件
使用propType校验props类型及默认值
使用motion.ant.design添加过渡动画效果
项目中的优化: 函数式组件全部采用memo、路由懒加载、函数防抖

文件目录

│─src
├─assets 公共资源css和图片
├─css 全局css
├─img 图片
├─common 公共常量以及模拟数据
├─components 公共组件
├─pages 页面
├─router 路由配置
├─service 网络配置和请求
└─store 全局的store配置
└─utils 工具
└─hooks 自定义hooks

Getting Started with Create React App(react官方说明)

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

yarn eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

yarn build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
blogit: 静态博客生成工具发布时间:2022-03-25
下一篇:
leyou_bms: 乐优商城后台管理系统发布时间:2022-03-25
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap