Latest commit 5310616 Sep 18, 2017 @walter-weinmann walter-weinmann committed with jeking3 THRIFT-4333 All tutorial examples with port 9090.
This closes #1364
Permalink
..
Failed to load latest commit information.
as3 THRIFT-2392: Actionscript tutorial Mar 12, 2014
c_glib configure.ac, Makefile.am: introduce THRIFT variable to support cross… Sep 9, 2017
cpp configure.ac, Makefile.am: introduce THRIFT variable to support cross… Sep 9, 2017
csharp THRIFT-4014 align C# meta data in AssemblyInfo.cs Dec 26, 2016
d THRIFT-3666 Build D tutorial as part of Autotools build Feb 27, 2016
dart configure.ac, Makefile.am: introduce THRIFT variable to support cross… Sep 9, 2017
delphi THRIFT-2768: Whitespace Fixup Oct 3, 2014
erl THRIFT-4333 All tutorial examples with port 9090. Sep 21, 2017
go configure.ac, Makefile.am: introduce THRIFT variable to support cross… Sep 9, 2017
haxe configure.ac, Makefile.am: introduce THRIFT variable to support cross… Sep 9, 2017
hs THRIFT-727 - C++: what() method of generated exceptions will provide … May 18, 2015
java Build fails using Java 1.8 with Ant < 1.9 Jan 26, 2017
js Build fails using Java 1.8 with Ant < 1.9 Jan 26, 2017
netcore THRIFT-4039 Update of Apache Thrift .Net Core lib Jan 24, 2017
nodejs configure.ac, Makefile.am: introduce THRIFT variable to support cross… Sep 9, 2017
ocaml THRIFT-727 - C++: what() method of generated exceptions will provide … May 18, 2015
perl THRIFT-727 - C++: what() method of generated exceptions will provide … May 18, 2015
php THRIFT-3596 Better conformance to PEP8 Feb 4, 2016
py.tornado configure.ac, Makefile.am: introduce THRIFT variable to support cross… Sep 9, 2017
py.twisted configure.ac, Makefile.am: introduce THRIFT variable to support cross… Sep 9, 2017
py THRIFT-4312 Erlang client cannot connect to Python server: exception Sep 21, 2017
rb configure.ac, Makefile.am: introduce THRIFT variable to support cross… Sep 9, 2017
rs THRIFT-4176: Implement threaded server for Rust Apr 27, 2017
Makefile.am THRIFT-2945 Add Rust support Jan 26, 2017
README.md THRIFT-2407 use markdown (rename README => README.md) Mar 19, 2014
shared.thrift THRIFT-3933 Microsoft .Net Core library port and generator for this l… Jan 4, 2017
tutorial.thrift THRIFT-3933 Microsoft .Net Core library port and generator for this l… Jan 4, 2017

README.md

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.