ReactJS开发指南SoftUni-Blog-System

Create React App入门

该项目是通过引导的。以下是一些常用的yarn脚本命令,帮助您在开发过程中快速上手:

1. 启动项目

  • yarn start:在开发模式下运行应用程序。启动后,打开浏览器查看实时效果。
  • 如果您进行任何编辑,页面将自动重新加载,并在控制台中显示任何棉绒错误

2. 运行测试

  • yarn test:在交互式监视模式下启动测试运行器,帮助您快速定位和解决错误。

3. 构建生产版本

  • yarn build:将应用程序构建到生产环境,输出到build文件夹。React会进行最佳优化,生成包含哈希值的文件,确保小而快速。

4. Eject(小心使用)

  • yarn eject:该操作是不可逆的。如果您不满意自动生成的构建配置,可以选择eject,以完全自定义项目配置。

注意:eject将项目的依赖和配置解包至本地,适用于高级用户或有特殊构建需求的场景。

zip
Blog-System-master.zip 预估大小:56个文件
folder
Blog-System-master 文件夹
folder
client 文件夹
folder
html&css 文件夹
file
home-authneticated.html 4KB
file
sign-page.html 2KB
file
reset.css 273B
file
styles.css 5KB
folder
public 文件夹
file
logo.png 6KB
file
react.png 140KB
file
article-detail-view.html 4KB
file
home-not-authneticated.html 3KB
file
package.json 849B
folder
src 文件夹
file
index.js 325B
file
logo.svg 3KB
folder
pages 文件夹
folder
error-page 文件夹
file
index.js 464B
file
index.css 612B
folder
home-page 文件夹
file
index.js 321B
folder
details-page 文件夹
file
index.js 331B
folder
sign-page 文件夹
file
index.js 321B
folder
components 文件夹
folder
TopArticle 文件夹
file
index.js 37B
file
TopArticle.js 1KB
folder
NavigationItem 文件夹
file
index.js 41B
file
NavigationItem.js 262B
folder
Details 文件夹
file
index.js 34B
file
Details.js 4KB
folder
Search 文件夹
file
index.js 33B
file
Search.js 432B
folder
Header 文件夹
file
index.js 33B
file
Header.js 325B
folder
Footer 文件夹
file
index.js 33B
file
Footer.js 154B
folder
Navigation 文件夹
file
Navigation.js 673B
file
index.js 37B
folder
Article 文件夹
file
index.js 34B
file
Article.js 589B
folder
Main 文件夹
file
index.js 31B
file
Main.js 876B
folder
Sign 文件夹
file
index.js 31B
file
Sign.js 1KB
file
App.js 603B
folder
services 文件夹
file
postService.js 401B
file
index.css 237B
file
.gitignore 310B
folder
public 文件夹
file
logo192.png 5KB
file
manifest.json 494B
file
robots.txt 67B
file
index.html 2KB
file
reset.css 273B
file
styles.css 5KB
file
logo.png 6KB
file
react.png 140KB
file
logo512.png 22KB
file
favicon.ico 4KB
file
yarn.lock 499KB
folder
server 文件夹
file
package.json 196B
file
db.json 2KB
file
.gitignore 310B
file
yarn.lock 51KB
file
README.md 3KB
...
zip 文件大小:553.92KB