Skip to content

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

License

Notifications You must be signed in to change notification settings

xpf0000/nestjs-i18n-bootstrap

Repository files navigation

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.