Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Web Development with Julia and Genie
  • Table Of Contents Toc
  • Feedback & Rating feedback
Web Development with Julia and Genie

Web Development with Julia and Genie

By : Ivo Balbaert
5 (1)
close
close
Web Development with Julia and Genie

Web Development with Julia and Genie

5 (1)
By: Ivo Balbaert

Overview of this book

Julia’s high-performance and scalability characteristics and its extensive number of packages for visualizing data make it an excellent fit for developing web apps, web services, and web dashboards. The two parts of this book provide complete coverage to build your skills in web development. First, you'll refresh your knowledge of the main concepts in Julia that will further be used in web development. Then, you’ll use Julia’s standard web packages and examine how the building blocks of the web such as TCP-IP, web sockets, HTTP protocol, and so on are implemented in Julia’s standard library. Each topic is discussed and developed into code that you can apply in new projects, from static websites to dashboards. You’ll also understand how to choose the right Julia framework for a project. The second part of the book talks about the Genie framework. You’ll learn how to build a traditional to do app following the MVC design pattern. Next, you’ll add a REST API to this project, including testing and documentation. Later, you’ll explore the various ways of deploying an app in production, including authentication functionality. Finally, you’ll work on an interactive data dashboard, making various chart types and filters. By the end of this book, you’ll be able to build interactive web solutions on a large scale with a Julia-based web framework.
Table of Contents (13 chapters)
close
close
1
Part 1: Developing Web Apps with Julia
5
Part 2: Using the Genie Rapid Web Development Framework

Making a TCP echo server with TCP-IP sockets

In this section, we will set up some foundational packages, then build a basic echo server, followed by a more sophisticated version.

The first version of an echo server

The Sockets package defines all the types (such as IPAddr, IPv4, IPv6, TCPSocket, and UDPSocket) and methods (such as connect, listen, accept, bind, send, and recv) for doing basic network communication in Julia.

Use the Sockets package to make IP addresses like this (see Chapter2\tcp_echoserver\ip_addr_uri.jl):

using Sockets
addr = ip"185.43.124.6"       # 1
typeof(addr)                  # 2

Line 1 uses the ip"..." string literal, and line 2 displays IPv4. Let’s connect to a website and get its IP address:

connect("julialang.org", 80)  # 3
getaddrinfo("julialang.org") ...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Web Development with Julia and Genie
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon