Bootstrap Redux 前端项目构建指南

本指南介绍如何构建基于 Bootstrap 和 Redux 的前端项目。

项目启动

在项目目录下执行以下命令启动开发服务器:

npm start

此命令会在开发模式下运行应用程序,并在浏览器中打开应用页面。代码修改后页面会自动重新加载,控制台会显示代码检查错误信息。

项目测试

执行以下命令启动测试运行器:

npm test

此命令会在交互式监视模式下运行测试程序。

项目构建

执行以下命令构建生产环境代码:

npm run build

此命令会将 React 代码打包到 build 文件夹中,并进行代码压缩和优化以提升应用性能。

依赖移除

注意: 以下操作不可逆。

执行以下命令移除单个构建依赖:

npm run eject

警告: 此操作会将项目中所有配置文件和依赖(如 webpack, Babel, ESLint 等)直接复制到项目中,之后将无法恢复。

如果您对当前构建工具和配置感到满意,请谨慎执行此操作。

zip
bootstrap-redux-frontend-master.zip 预估大小:40个文件
folder
bootstrap-redux-frontend-master 文件夹
file
.gitignore 310B
file
package.json 1KB
file
package-lock.json 568KB
folder
src 文件夹
folder
components 文件夹
folder
layout 文件夹
file
Layout.jsx 657B
file
Layout.css 1KB
folder
nav 文件夹
file
Nav.jsx 1007B
file
Nav.css 196B
file
index.js 143B
folder
sidebar 文件夹
file
Sidebar.jsx 2KB
file
Sidebar.css 1KB
file
setupTests.js 255B
folder
fontAwesomeIcons 文件夹
file
index.js 225B
file
index.js 695B
folder
types 文件夹
file
index.js 628B
file
App.js 461B
folder
containers 文件夹
folder
newProduct 文件夹
file
NewProduct.css 53B
file
NewProduct.jsx 7KB
file
index.js 190B
folder
listado 文件夹
folder
components 文件夹
folder
datatable 文件夹
file
DataTable.jsx 2KB
folder
Listado.css 文件夹
file
Listado.jsx 2KB
folder
editProduct 文件夹
file
EditProduct.jsx 7KB
file
serviceWorker.js 5KB
folder
reducers 文件夹
file
index.js 159B
file
ProductosReducer.js 2KB
folder
axios 文件夹
file
axios.js 119B
file
App.css 564B
folder
actions 文件夹
file
ProductosAction.js 3KB
file
index.css 366B
file
App.test.js 280B
folder
routes 文件夹
file
index.js 450B
file
paths.js 119B
folder
store 文件夹
file
store.js 401B
folder
public 文件夹
file
robots.txt 67B
file
logo192.png 5KB
file
index.html 2KB
file
favicon.ico 3KB
file
manifest.json 492B
file
logo512.png 9KB
file
README.md 3KB
zip 文件大小:191.81KB