Book Image

Web Development with Julia and Genie

By : Ivo Balbaert, Adrian Salceanu
Book Image

Web Development with Julia and Genie

By: Ivo Balbaert, Adrian Salceanu

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)
1
Part 1: Developing Web Apps with Julia
5
Part 2: Using the Genie Rapid Web Development Framework

Testing Genie apps

Testing is a critical part of developing high-quality software that is easy to scale and maintain. Some developers take this to the extreme and prefer to write the tests before the code is written, starting with failing tests that describe the desired behavior and APIs, and making sure that the tests pass as they implement the minimum necessary feature. This way of working is known as Test-Driven Development (TDD). TDD is a good concept, but it might not be always possible or efficient. Our standpoint is that it’s fine whether the tests are written before or after the actual code it tests. However, when the tests are written after the code is written, the project should not be considered complete until it has proper test coverage and all the tests pass.

The Julia community recognizes the importance of tests, and for this reason, Julia has a built-in testing framework under the Test module. In addition, there are multiple packages that improve upon the Test...