thrift/tutorial
2013-08-14 21:33:51 +02:00
..
cpp THRIFT-1829 cpp unit tests fail to build using multiple make jobs 2013-01-15 23:20:19 +01:00
csharp THRIFT-2032 C# client leaks sockets/handles 2013-06-25 22:21:29 +02:00
d THRIFT-1586 Two small D issues 2012-04-28 19:20:23 +00:00
delphi THRIFT-1555 Delphi version of the tutorial code 2012-04-09 16:31:42 +00:00
erl THRIFT-1227 - erlang implementation of thrift json protocol 2011-09-18 04:57:50 +00:00
go THRIFT-2118 Certificate error handling still incorrect 2013-08-14 21:33:51 +02:00
hs add ASL to a handful of files 2010-07-28 18:23:22 +00:00
java THRIFT-1735 integrate tutorial into regular build 2012-10-24 18:40:06 +00:00
js subversion, thanks and good bye 2013-03-22 21:08:39 +01:00
ocaml THRIFT-1906 ocaml: add tutorial example to parallel that for other languages 2013-04-27 23:09:40 +02:00
perl THRIFT-619: Perl server and example 2009-11-12 03:01:33 +00:00
php THRIFT-1615 PHP Namespace (was Thrift for Symfony 2) 2012-09-05 19:47:14 +00:00
py THRIFT-1735 remove generated files with make clean 2012-11-01 22:59:09 +00:00
py.tornado THRIFT-1704: Tornado support (Python) 2013-03-07 11:32:48 -05:00
py.twisted THRIFT-1735 remove generated files with make clean 2012-11-01 23:02:07 +00:00
rb THRIFT-1735 integrate tutorial into regular build 2013-06-09 23:10:06 +02:00
Makefile.am THRIFT-2012 Modernizing Go 2013-06-18 22:25:07 +02:00
README THRIFT-387. Add appropriate Apache header to all code files 2009-04-08 00:19:37 +00:00
shared.thrift THRIFT-1500: d programming language support 2012-03-22 21:49:10 +00:00
tutorial.thrift THRIFT-1500: d programming language support 2012-03-22 21:49:10 +00:00

Thrift Tutorial

License
=======

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.

Tutorial
========

1) First things first, you'll need to install the Thrift compiler and the
   language libraries. Do that using the instructions in the top level
   README file.

2) Read tutorial.thrift to learn about the syntax of a Thrift file

3) Compile the code for the language of your choice:

     $ thrift
     $ thrift -r --gen cpp tutorial.thrift

4) Take a look at the generated code.

5) Look in the language directories for sample client/server code.

6) That's about it for now. This tutorial is intentionally brief. It should be
   just enough to get you started and ready to build your own project.