thrift/tutorial
jfarrell 4c8506e30d Thrift-2602:Fix missing dist files
Client: build process
Patch: jfarrell

Introduced a bug in 8fd8c63 adding gen files to the dist, removing those
files from the EXTRA_DIST.
2014-07-10 14:17:49 -04:00
..
as3 THRIFT-2392: Actionscript tutorial 2014-03-11 22:21:07 -04: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-2407 use markdown (rename README => README.md) 2014-03-19 06:47:47 +01:00
go THRIFT-2325: SSL test certificates 2014-04-07 23:45:19 +02:00
hs THRIFT-2401 Haskell tutorial compiles 2014-05-14 00:49:41 +02:00
java THRIFT-2602:Fix missing dist files 2014-07-10 09:14:51 -04:00
js js tutorial add missing semicolon 2014-03-26 23:23:37 +01:00
nodejs THRIFT-2376 nodejs: allow Promise style calls for client and server 2014-02-25 22:11:10 +01:00
ocaml THRIFT-2407 use markdown (rename README => README.md) 2014-03-19 06:47:47 +01: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-2602:Fix missing dist files 2014-07-10 14:17:49 -04:00
README.md THRIFT-2407 use markdown (rename README => README.md) 2014-03-19 06:47:47 +01: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.md 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.