Vue3 + Pinia 仿抖音,Vue 在移动端的最佳实践 . Imitate TikTok ,Vue Best practices on Mobile
Go to file
Zyronon c9e2a5d3b9
Merge pull request #109 from zyronon/dependabot/npm_and_yarn/node/axios-1.7.4
build(deps): bump axios from 1.6.7 to 1.7.4 in /node
2024-09-18 16:18:52 +08:00
.github refactor: save 2024-05-04 00:31:47 +08:00
.husky feat: add 2024-04-05 02:25:00 +08:00
docs Update README.ja.md 2024-05-11 00:18:40 +08:00
env refactor: Compress pictures and evade some pages censorship 2024-04-20 03:08:51 +08:00
node build(deps): bump axios from 1.6.7 to 1.7.4 in /node 2024-09-18 02:16:05 +00:00
public refactor: optimize the cover map 2024-04-30 09:15:49 +08:00
src fix: 修复纵向滑动的下标的bug 2024-09-08 20:28:16 +08:00
.dockerignore refactor: fuck vite defineConfig 2024-05-02 01:08:33 +08:00
.eslintrc.cjs feat: add typescript support 2024-04-06 02:35:49 +08:00
.gitignore feat: add typescript support 2024-04-06 02:35:49 +08:00
.prettierrc.json pretty再次格式化所有文件 2024-04-02 15:40:18 +08:00
CNAME Create CNAME 2024-04-20 15:17:58 +08:00
commitlint.config.ts refactor: format code 2024-04-06 02:46:14 +08:00
Dockerfile refactor: fuck vite defineConfig 2024-05-02 01:08:33 +08:00
env.d.ts refactor: solve the mute problem 2024-04-27 02:31:27 +08:00
index.html feat: add typescript support 2024-04-06 02:35:49 +08:00
LICENSE docs: update readme.md 2024-04-05 14:30:04 +08:00
Makefile feat: add build docker image 2024-05-01 00:31:49 +08:00
netlify.toml 添加netlify缓存配置 2024-04-03 23:51:47 +08:00
package.json build(deps-dev): bump vite from 5.2.10 to 5.2.14 2024-09-17 22:19:45 +00:00
pnpm-lock.yaml build(deps-dev): bump vite from 5.2.10 to 5.2.14 2024-09-17 22:19:45 +00:00
README.md docs: update readme.md 2024-05-30 14:41:37 +08:00
tsconfig.app.json refactor: solve the mute problem 2024-04-27 02:31:27 +08:00
tsconfig.json feat: add typescript support 2024-04-06 02:35:49 +08:00
tsconfig.node.json feat: add typescript support 2024-04-06 02:35:49 +08:00
vercel.json fix: vercel&netlify refresh error 2024-04-03 22:26:06 +08:00
vite.config.ts docs: update README.md 2024-05-07 10:10:22 +08:00

Douyin-Vue

English | Spanish | German | French | 简体中文 | 日本語

License

douyin-vue 是一个模仿 抖音|TikTok 的移动端短视频项目。Vue 在移动端的"最佳实践",媲美原生 App 丝滑流畅的使用体验。使用了最新的 Vue 技术栈,基于 Vue3Vite5Pinia实现。数据保存在项目本地,通过 axios-mock-adapter 库拦截Api 并返回本地json数据模拟真实后端请求

在线访问

Github Pages: https://dy.ttentau.top/

链接

【模仿抖音系列】一:200行代码实现类似Swiper.js的轮播组件
【模仿抖音系列】二:实现抖音 “视频无限滑动“效果
【模仿抖音系列】三:Vue 路由使用介绍以及添加转场动画
【模仿抖音系列】四:Vue 有条件路由缓存,就像传统新闻网站一样
【模仿抖音系列】五:Github Actions 部署 Pages、同步到 Gitee、翻译 README 、 打包 docker 镜像
【模仿抖音系列】六:使用rem、动态vh自适应移动端

运行

注意:本项目仅适用于学习和研究,不得用于商业使用

快速部署至 Vercel

Deploy with Vercel

部署到 Docker

# pull Docker image
docker pull ghcr.io/zyronon/douyin-vue:latest

# start container, nginx reverse proxy custom port, for example: docker run -d -p 80:80 ghcr.io/zyronon/douyin-vue:latest
docker run -d -p 80:80 ghcr.io/zyronon/douyin-vue:latest

本地开发

注意:必须 git 命令 clone 下来才能运行,下载 zip 包是无法运行的。如果 clone 速度太慢,推荐使用 gitee 地址

git clone https://gitee.com/zyronon/douyin.git (中国使用)
          https://github.com/zyronon/douyin.git 
cd douyin
npm install
npm run dev

打开浏览器并访问: http://127.0.0.1:3000

注意:需要将浏览器切至手机模式,先按 F12 调出控制台,再按 Ctrl+Shift+M 才能正常预览

数据来源

视频来源于以下抖音网红

图片来自于小红书公开笔记

以上内容均是互联网公开信息

功能与建议

目前项目处于开发初期,新功能正在持续添加中,如果你对软件有任何功能与建议,欢迎在 Issues 中提出 如果你也喜欢本软件的设计思想,欢迎提交 PR,非常感谢你对我们的支持!

联系我

您可以联系我的邮箱 zyronon@163.com

分享我其他开源项目:

**Typing Word ** - 可在网页上使用的背单词软件~
**Web Scripts ** - 一些好用的油猴脚本~

许可协议

GPL