thrift/tutorial
Roger Meier 9f4f5157a3 THRIFT-2367 Build failure: stdlib and boost both define uint64_t
Fix: remove "using namespace boost;"
Patch: Roger Meier
2014-02-19 16:28:35 +01:00
..
cpp THRIFT-2367 Build failure: stdlib and boost both define uint64_t 2014-02-19 16:28:35 +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-2349: Golang - improve tutorial 2014-02-05 21:10:59 +01:00
hs add ASL to a handful of files 2010-07-28 18:23:22 +00:00
java Thrift-2124: .o, .so, .la, .deps, .libs, gen-* files left tutorials, test and lib/cpp when making DIST 2013-08-15 21:20:19 -04:00
js adopt new thrift.js location within tutorial.html 2013-09-21 08:47:21 +02:00
nodejs THRIFT-2334 nodejs: add a tutorial for node JS 2014-01-27 21:15:56 +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-2124: .o, .so, .la, .deps, .libs, gen-* files left tutorials, test and lib/cpp when making DIST 2013-08-15 21:20:19 -04:00
rb THRIFT-1735 integrate tutorial into regular build 2013-06-09 23:10:06 +02:00
Makefile.am THRIFT-2334 nodejs: add a tutorial for node JS 2014-01-27 21:15:56 +01: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.