Skip to content

githubuserzero/seed

 
 

Repository files navigation

Status

CircleCI DeepScan grade

Start development

npm start

Build and git publish

npm run build
npm run git:publish

NginX config sample

pm2 start /project/dist/app/server

Start Node.js server (with PM2)

server {
  set $STATIC_FILES /{project-root}/dist/app/browser;
  set $SERVER_PORT 4100;

  listen       9100;
  server_name  localhost;

  # SSR proxy
  location / {
    proxy_redirect off;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_set_header X-NginX-Proxy true;
    proxy_set_header Connection "";
    proxy_http_version 1.1;

    proxy_pass http://127.0.0.1:$SERVER_PORT;
  }

  # Static files
  location ~ ^/(.*)\.(.*)$ {
    root $STATIC_FILES;
    autoindex off;
    expires off;
  }
}

Add NginX server config

About

Project seed using react + typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 70.1%
  • JavaScript 19.3%
  • CSS 5.8%
  • Shell 4.8%