引用
Localtunnel will assign you a unique publicly accessible url that will proxy all requests to your locally running webserver. it's really helpful when we doing some testing like third-party login like QQ login, weibo login etc, as they need an call back server to send back response.
Steps:
1. Install Node JS
brew install node
2. Install Localtunnel
npm install -g localtunnel
3. Start Localtunnel Client, run following command in shell
lt --port 3000
will get mapping address
caseysdeMacBook-Air:~ casey$ lt --port 3000 your url is: https://gtxzozgorw.localtunnel.me