@Ayesha Kalra, the shiny-server requires a linux machine as you can see in the readme.md file. You can not install the shiny server on a Mac.( at least not now )
You'll need a Linux server, with the following prerequisites installed...
more information shiny-server github
If you want to deploy over the web you can apply for a free beta test account. To register