You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.7 KiB
1.7 KiB
Local environment Setup
-
Postman JSON for API Link
-
Visual Studio Code
-
NodeJS
-
FortiClient VPN access to connec to dev server
-
Create Razer Dev Account
-
SSL cert files under
C:\etc\ssl\nodejs -
host file
C:\Windows\System32\drivers\etc\hosts-
127.0.0.1 www.zgold-dev.razer.com
-
-
Start BE server. BE server also serve FE at port 443
./distnpm start
-
Start FE server to proxy from
https://www.zgold-dev.razer.com:7888/apitohttps://localhost/api-
npm run serveto serve FE webpack -
Hot Reload editing here
-
proxy setup in
webpack.dev.jsdevServer: { allowedHosts: [ 'media.zvault.razerzone.com', 'media.gold.razer.com' ], contentBase: dist, publicPath: '/', open: true, progress: true, host: Environment.webpackHost, port: Environment.webpackPort, proxy: { '/api': 'https://www.zgold-dev.razer.com' }, https: { ca: fs.readFileSync(Environment.ssl.ca, 'utf8'), key: fs.readFileSync(Environment.ssl.key, 'utf8'), cert: fs.readFileSync(Environment.ssl.cert, 'utf8'), spdy: { protocols: ['http/1.1'] } },
-