Use the revel command line tool to create a new application in your GOPATH and run it:

    1. $ export GOPATH="/home/me/gostuff"
    2. $ cd $GOPATH
    3. $ revel new myapp
    4. ~
    5. ~ revel! http://revel.github.io
    6. ~
    7. Your application is ready:
    8. /home/me/gostuff/src/myapp
    9. You can run it with:
    10. revel run myapp
    11. $ revel run myapp
    12. ~
    13. ~ revel! http://revel.github.io
    14. ~
    15. 2012/09/27 17:01:54 run.go:41: Running myapp (myapp) in dev mode
    16. 2012/09/27 17:01:54 harness.go:112: Listening on :9000

    Another Example

    1. $ revel new github.com/myaccount/myapp
    2. $ revel run github.com/myaccount/myapp

    Open your browser to http://localhost:9000/ to see a notification that your app is ready.

    Your Application Is Ready

    原文: https://revel.github.io/tutorial/createapp.html