Fetch the repository succeeded.
它(Github 、 Gitee)是一个PC端、WAP端自适应展示的一个前端网站前台,它基于 nuxtjs实现。
- 首页
-- 最新推荐
-- 随笔作品列表
-- 友情链接
- 关于
- 随笔
- 作品
- 专题
- 邻居
- 百度SEO推送
- CNZZ统计
本项目基于nuxtjs生成,下面是整个项目的目录结构。大部分主体目录结构说明请参照nuxtjs目录结构
├── assets # 资源目录
│ │── images # 图片目录
├── components # 组件目录
├── layouts # 布局目录
├── middleware # 中间件目录
├── pages # 页面目录
│ ├── article # 随笔目录
│ │ ├── detail # 随笔详情
│ │ └── _cname.vue # 随笔(分类)列表
│ ├── search # 搜索列表目录
│ ├── tag # 标签下内容列表目录
│ ├── topics # 专题目录
│ │ ├── detail # 专题详情
│ │ └── index.vue # 专题列表
│ ├── works # 作品目录
│ │ ├── detail # 作品详情
│ │ └── index.vue # 作品列表
│ ├── about.vue # 关于我
│ ├── index.vue # 首页
│ └── links.vue # 邻居
├── plugins # 插件目录
├── server # 服务器配置目录
├── static # 静态文件目录
├── store # Store 目录(server Api目录)
├── test # 测试
├── utils # 工具包
├── .babelrc # .babelrc配置
├── .editorconfig # 编辑器配置
├── .env.xxx # 环境变量配置
├── .eslintrc.js # eslint 配置项
├── ava.config.cjs # ava.config.cjs 配置
├── jsconfig.json # vscode js配置
├── nuxt.config.js # nuxt.config.js 文件
└── package.json # package.json
# install dependencies
$ npm install
# serve with hot reload at 127.0.0.1:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm run start
or
$ npm run server
# generate static project
$ npm run generate
http {
# 内部添加以下内容
server {
# 监听 80 端口 ,你也可以设置其他端口但是访问域名时需要加上端口访问
listen 80;
# 你的网址,如果是本地测试,也可以设置你本地的ip
server_name liqingsong.cc;
location / {
# 代理地址,你本地 nuxt 的访问地址
proxy_pass http://127.0.0.1:3000;
index index.html index.htm;
}
}
}
如果你觉得这个项目帮助到了你,你可以请作者喝咖啡表示鼓励.
ALIPAY | |
---|---|
![]() |
![]() |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。