# CherryPy By Example

The best way to learn CherryPy is to look at example programs.

## Hello World

Save the code under a file named helloworld.py. Then to start up the application, type the following command:

`python` helloworld.py

You will see some information on your terminal window which are the log of the web server.

Then simply point your browser to http://localhost:8080 and say Bravo!

Hello World

## Exposed Methods

For security reasons, CherryPy requires developers to explicitly specify which methods may be accessed via the web. The method's 'exposed' attribute, when True, indicates that a given method is published to the web.

Exposed Methods