thrift/tutorial
Jens Geyer 3cac320451 THRIFT-5511 Full support for the new net6 "nullability" semantics
Client: netstd
Patch: Jens Geyer

This closes #2516
2022-02-08 17:45:10 +01:00
..
c_glib THRIFT-4896 - prevent cpp and c_glib include directories from leaking into other targets (#1821) 2019-07-01 14:07:45 -04:00
cl THRIFT-5476 Deprecate Common Lisp support 2021-10-31 12:03:12 +01:00
cpp Use modern OpenSSL cmake syntax (if available), and larger cmake cleanup 2021-09-02 08:54:42 +02:00
d THRIFT-4717: fix up make clean with autoconf 2019-01-25 23:33:54 -05:00
dart Release 0.16.0 2022-01-20 21:02:02 +01:00
delphi Release 0.16.0 2022-01-20 21:02:02 +01:00
erl THRIFT-4426: remove a symbolic link that was checked in 2018-12-27 13:03:23 -05:00
go go: Fix things staticcheck complains about 2021-08-27 09:28:08 -07:00
haxe THRIFT-5370 Haxe 4 compatibility incl TConfiguration & MAX_MESSAGE_SIZE 2021-03-17 20:42:29 +01:00
java THRIFT-(1418|1507|3983|4120|4178|4259|4294): Multiple issues 2018-01-24 12:28:55 -05:00
js THRIFT-4546: replace all git-wip-us.apache.org to github.com 2018-12-28 07:46:47 -05:00
netstd THRIFT-5511 Full support for the new net6 "nullability" semantics 2022-02-08 17:45:10 +01:00
nodejs THRIFT-4967: Node.js tutorial server fails if the zip function is invoked 2019-10-08 23:09:04 +01:00
ocaml Release 0.16.0 2022-01-20 21:02:02 +01:00
perl THRIFT-4972: Add Makefile.am to the Perl tutorial 2019-10-18 00:15:23 +02:00
php Consolidated gitignore & added missing EXTRA_DISTs 2021-02-05 12:58:49 +01:00
py THRIFT-5051: Fix Python tutorials to address THRIFT-4002 2020-01-19 22:18:52 +01:00
py.tornado THRIFT-5051: Fix Python tutorials to address THRIFT-4002 2020-01-19 22:18:52 +01:00
py.twisted THRIFT-5051: Fix Python tutorials to address THRIFT-4002 2020-01-19 22:18:52 +01:00
rb THRIFT-4968: Makefile.am in the Ruby tutorial refers to Python directory 2019-10-06 12:19:16 +02:00
rs Pin clap to 2.33 as 2.34 results in build failures 2021-12-13 08:55:45 +01:00
Makefile.am THRIFT-5347 Remove deprecated Haskell bindings 2021-03-22 09:42:38 +01:00
README.md (no ticket) Improved formatting 2020-02-05 22:36:33 +01:00
shared.thrift THRIFT-4981 Remove deprecated netcore bindings from the code base 2019-10-20 16:21:29 +02:00
tutorial.thrift THRIFT-4981 Remove deprecated netcore bindings from the code base 2019-10-20 16:21:29 +02: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
  1. Take a look at the generated code.

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

  3. 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.