Mark Slee | 07a3aab | 2007-03-07 05:45:10 +0000 | [diff] [blame] | 1 | Thrift Tutorial |
| 2 | |
| 3 | Author: Mark Slee (mcslee@facebook.com) |
| 4 | |
| 5 | Thrift is distributed under the Thrift open source software license. |
| 6 | Please see the included LICENSE file. |
| 7 | |
| 8 | Tutorial |
| 9 | ======== |
| 10 | |
| 11 | 1) First things first, you'll need to install the Thrift compiler and the |
| 12 | language libraries. Do that using the instructions in the top level |
| 13 | README file. |
| 14 | |
| 15 | 2) Read tutorial.thrift to learn about the syntax of a Thrift file |
| 16 | |
| 17 | 3) Run tutorial.thrift to compile the code: |
| 18 | |
| 19 | ./tutorial.thrift |
| 20 | |
| 21 | 4) Take a look at the generated code. |
| 22 | |
| 23 | 5) Look in the language directories for sample client/server code. |
| 24 | |
| 25 | 6) That's about it for now. This tutorial is intentionally brief. It should be |
| 26 | just enough to get you started and ready to build your own project. |