Building applications with Julia
- Building applications with Julia
- Tutorial Description
- Module A: Creating the model
- The Domain layer
- Delaring enumerator data types
- Functions for the API layer
- Functions for the Infrastructure layer
- Module B: Implementing the model
- Application structure
- Implementing the Domain (domain.jl)
- Implementing the API (api.jl)
- Implementing the Infrastructure in infrastructure.jl
- Module C: Creating the Package RbO (under development)
- To create a package you need to do five steps:
- 1. Install git
- 2. Start with an empty directory
- 3. Create a project on GitHub
- 3. Create the right package structure
- Commit changes as follows.
- 4. Define your package as a module
- Upload changes after the first time
- Testing your code
- Make the package available for your users
- Documentation (under development!)
- Document structure
- Installing Julia 1.1.1, Atom, and IJulia Notebook
- The steps to install Julia. See the Packt book Julia 1.0 Programming
- Next install Atom installed as IDE
- Then install the package Juno
- Also install IJulia Notebook
- Working with Atom
- Working with the Julia Package Manager
I switched to Julia because it is easy to use, and an active community supports it. Also, I like how easy you can create documentation and help with Julia, as well as testing your application. It changed my mind when I discovered that in your documentation code fragments can automatically be tested during the creation of the document. Creating this tutorial is to check whether I can explain what I have learned from this project.
The target audience for the tutorial Building applications with Julia is application developers who want to use Julia in a structured way.
Students will learn the technique to create a module that can to be used in container-based applications. The tutorial starts creating the domain layer. Besides the domain objects, we defined functions for the API layer and the Infrastructure layer. Students learn to create documentation for the application that also tests the code examples.
Tutorial format and duration
By the end of the tutorial, you should be able to:
- Create a model with Domain, API, and Infrastructure layers.
- Create a Julia module.
- Create the documentation for your module.
- Let the application communicate over a network.