you can try ngrok ! it can give your localhost a temp ssl url.
Unfortunately, you can't do it. Because webhook url requires SSL. You can't apply SSL without domain name. https://developers.line.biz/en/docs/messaging-api/building-bot/#setting-webhook-url