This example shows how to use Anychart library with the Julia programming language and MySQL database.
This example shows how to use Anychart library with the Julia programming language and MySQL database.
To use this sample you must have Julia installed, if not visit Julia download page;
MySQL installed and running, if not please check out MySQL download page and follow these instructions.
To check your installations, run the following command in the command line:
$ julia -v
julia version 0.6.0 # sample output
$ mysql --version
mysql Ver 14.14 Distrib 5.5.52, for debian-linux-gnu (x86_64) using readline 6. # sample output
To start this example run commands listed below.
Clone the repository from github.com:
$ git clone git@github.com:anychart-integrations/julia-http-mysql-template.git
Navigate to the repository folder:
$ cd julia-http-mysql-template
Set up MySQL database, use -u -p flags to provide username and password:
$ mysql < database_backup.sql
Run Julia:
$ julia
Install application dependencies, one after another and quit Julia:
julia> Pkg.update()
julia> Pkg.add("HttpServer")
julia> Pkg.add("Mustache")
julia> Pkg.add("MySQL")
julia> Pkg.add("JSON")
julia> quit()
Run application, make sure your current directory is julia-http-mysql-template
so app.jl could find template file index.html:
$ julia app.jl
Open browser at http://localhost:8000/
Your workspace should look like:
julia-http-mysql-template/
app.jl # main Julia code
database_backup.sql # MySQL database dump
index.html # html template
LICENSE
README.md
Language - Julia
Web server - HttpServer.jl
Html template - Mustache
Database - MySQL
AnyChart Julia/MySQL integration sample includes two parts:
If you have any questions regarding licensing - please contact us. sales@anychart.com