Publish a Website
Your users need to be able to access your website.
You can run a web server on your own PC and have the users know your IP to connect to it.
The common solution is though to rent a domain name and a server and upload your website there.
Hiding The Code
This is a tricky one. What do you mean by code first of all? Browsers download the website (HTML code, JavaScript code, etc) from the server and present the content rendered in the browser on the client's PC. So you cannot really hide the code. There are parts of the logic (e.g. that generates more code) that can be hidden and calculated on the server side, but ultimately, everything that you want your users to be seen needs to be downloaded by them and displayed in the browser.
Someone with actual web development experience can give you more details and maybe more tricks to hide part of your logic.