Share Online Proxy helps redirect all the api requests to sharepoint online site, during the local front end development with script editor webpart based approach or Add In based development. As it becomes really difficult to compile the front end application deploy test and fix.
To start the proxy:
docker run --rm --name sharepoint-proxy-container -p 8080:80 -e ASPNETCORE_ENVIRONMENT='Production' -e ProxySetting:BaseUrl='<SharePoint Site Collection Url>' -e ProxySetting:UserName='<User Name>' -e ProxySetting:Password='<Password>' -i talha0113/sharepoint-proxy
Replace Following Paramaters
<SharePoint Site Collection Url>, example: (https://domain.sharepoint.com/sites/xyz)<User Name>, example: ([email protected])<Password>with actuall user password
After successfull start of the container browse the url http://localhost:8080 must see front page with proxy information. also verify the the SharePoint rest api by browsing http://localhost:8080/_api/web