# api-frontend **Repository Path**: lzn0209/api-frontend ## Basic Information - **Project Name**: api-frontend - **Description**: 2024春 API大作业——简易版抖音前端 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-26 - **Last Updated**: 2024-06-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 简易版抖音——前端简介 该项目为2024春季 API设计与实现课程期末大作业。 ## 项目文件目录 项目文件目录如下: │ .gitignore │ package-lock.json │ package.json │ README.md (前端简介) │ ├─public │ favicon.ico │ index.html │ logo192.png │ logo512.png │ manifest.json │ robots.txt │ └─src │ App.css │ App.js │ App.test.js │ index.css │ index.js (项目入口文件) │ logo.svg │ reportWebVitals.js │ setupTests.js │ ├─assets (项目静态资源) ├─components (项目公用组件) │ └─AuthLayout │ AuthLayout.js │ ├─pages (项目页面文件) │ ├─HomePage │ │ Home.js (项目主页界面) │ │ │ ├─LoginPage │ │ Login.js (用户登录界面) │ │ styles.css │ │ │ ├─PostVideoPage │ │ PostVideo.js (发布视频界面) │ │ │ ├─RegisterPage │ │ Register.js (用户注册界面) │ │ styles.css │ │ │ ├─UserPage │ │ User.js (用户个人信息界面) │ │ │ └─VideoPage │ Video.js (刷视频界面) │ └─router index.js (项目路由配置文件界面) ## 项目文使用插件 本项目主要使用插件如下: ### antd组件库 "@ant-design/icons": "^5.3.7", "antd": "^5.18.0" ### axios插件 "axios": "^1.7.2" ### react-router-dom插件 "react-router-dom": "^6.23.1" ### react-player插件 "react-player": "^2.16.0" ## 项目启动方式 ### `npm start` Runs the app in the development mode.\ Open [http://localhost:3000](http://localhost:3000) to view it in your browser. The page will reload when you make changes.\ You may also see any lint errors in the console. ### `npm test` Launches the test runner in the interactive watch mode.\ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. ### `npm run 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](https://facebook.github.io/create-react-app/docs/deployment) for more information. ### `npm run 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.