https://github.com/xpf0000/nestjs-i18n-bootstrap
Source code for an online multilingual adaptive website https://www.macphpstudy.com, using nestjs, nestjs-i18n, hbs, bootstrap
https://github.com/xpf0000/nestjs-i18n-bootstrap
adaptive adaptive-website bootstrap bootstrap5 i18n-website multilingual multilingual-website nestjs nestjs-i18n
Last synced: 30 days ago
JSON representation
Source code for an online multilingual adaptive website https://www.macphpstudy.com, using nestjs, nestjs-i18n, hbs, bootstrap
- Host: GitHub
- URL: https://github.com/xpf0000/nestjs-i18n-bootstrap
- Owner: xpf0000
- License: mit
- Created: 2023-03-06T03:59:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T06:42:52.000Z (over 3 years ago)
- Last Synced: 2025-01-06T17:48:59.904Z (over 1 year ago)
- Topics: adaptive, adaptive-website, bootstrap, bootstrap5, i18n-website, multilingual, multilingual-website, nestjs, nestjs-i18n
- Language: HTML
- Homepage: https://www.macphpstudy.com
- Size: 9.08 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-ZH.md
- License: LICENSE
Awesome Lists containing this project
README
[英文版-en](README.md) | [中文版-zh](README-ZH.md)
已部署上线的多语言自适应网站https://www.macphpstudy.com的源代码,使用nestjs,nestjs-i18n,hbs,bootstrap等技术栈制作
## 安装
```bash
$ yarn install
```
## 调试运行
```bash
# development
$ yarn run start
# watch mode
$ yarn run start:dev
# production mode
$ yarn run start:prod
```
## 构建
```bash
$ yarn run build
```
## 部署
使用PM2运行
```bash
$ cd dist;
$ pm2 start main.js
$ pm2 save
```
使用nginx作为反向代理, nginx url重定向规则:
```bash
location ~* (.*)?$ {
if (!-f $request_filename){
proxy_pass http://127.0.0.1:3000;
}
}
```
## 站点地图sitemap
编辑sitemap.js, 替换成你的url和lang设置
```javascript
const urls = [
'www.macphpstudy.com',
'www.phpwebstudy.com',
'www.phpwebstudy.cn',
];
const langs = ['', 'en/', 'zh/', 'ja/', 'fr/', 'de/', 'ko/'];
```
构建站点地图
```bash
$ yarn run sitemap
```
## 项目信息
- Author - [xpf0000](https://github.com/xpf0000)
- Website - [https://www.macphpstudy.com](https://www.macphpstudy.com)
- Twitter - [@xpf0000](https://twitter.com/xpf0000)
## 开源许可证
[MIT licensed](LICENSE).