blob: 4bf1c27ec811f89c353613fcc20a3563db9328dd [file] [log] [blame]
Mark Slee07a3aab2007-03-07 05:45:10 +00001Thrift Tutorial
2
Mark Slee07a3aab2007-03-07 05:45:10 +00003Thrift is distributed under the Thrift open source software license.
4Please see the included LICENSE file.
5
6Tutorial
7========
8
91) First things first, you'll need to install the Thrift compiler and the
10 language libraries. Do that using the instructions in the top level
11 README file.
12
132) Read tutorial.thrift to learn about the syntax of a Thrift file
14
David Reissd1c86822009-03-25 22:15:18 +0000153) Compile the code for the language of your choice:
Mark Slee07a3aab2007-03-07 05:45:10 +000016
David Reissd1c86822009-03-25 22:15:18 +000017 $ thrift
David Reiss4438ca52009-03-26 06:14:17 +000018 $ thrift -r --gen cpp tutorial.thrift
Mark Slee07a3aab2007-03-07 05:45:10 +000019
204) Take a look at the generated code.
21
225) Look in the language directories for sample client/server code.
23
246) That's about it for now. This tutorial is intentionally brief. It should be
25 just enough to get you started and ready to build your own project.