1 Star 0 Fork 0

徐鹏飞 / nestjs-i18n-bootstrap

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
MIT

Nest Logo

英文版-en | 中文版-zh

Source code for an online multilingual adaptive website https://www.macphpstudy.com, using nestjs, nestjs-i18n, hbs, bootstrap

Installation

$ yarn install

Running the app

# development
$ yarn run start

# watch mode
$ yarn run start:dev

# production mode
$ yarn run start:prod

Build

$ yarn run build

Deploy

Running with PM2

$ cd dist;
$ pm2 start main.js
$ pm2 save

Using nginx as a reverse proxy, nginx url rewrite rule:

location ~* (.*)?$ {
    if (!-f $request_filename){
        proxy_pass http://127.0.0.1:3000;
	}
}

SiteMap

Edit sitemap.js, replace with your's url and lang set

const urls = [
  'www.macphpstudy.com',
  'www.phpwebstudy.com',
  'www.phpwebstudy.cn',
];

const langs = ['', 'en/', 'zh/', 'ja/', 'fr/', 'de/', 'ko/'];

then build sitemap

$ yarn run sitemap

Stay in touch

License

MIT licensed.

MIT License Copyright (c) 2023 徐鹏飞 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Source code for an online multilingual adaptive website https://www.macphpstudy.com, using nestjs, nestjs-i18n, hbs, bootstrap expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
HTML
1
https://gitee.com/X250881478/nestjs-i18n-bootstrap.git
git@gitee.com:X250881478/nestjs-i18n-bootstrap.git
X250881478
nestjs-i18n-bootstrap
nestjs-i18n-bootstrap
main

Search