There are a few different ways depending on if you are planning to epublish or publish a paper book. If it is the former, I would recommend uploading some content on an e-publishing platform like Kindle Direct Publishing or Wattpad and promoting it via social media etc to see how popular it becomes. For traditional publishing, I recommend you find a good agent as most reputable publishers no longer accept unsolicited manuscripts.