项目作者: anychart-integrations

项目描述 :
This example shows how to use Anychart library with the Julia programming language and MySQL database.
高级语言: SQLPL
项目地址: git://github.com/anychart-integrations/julia-http-mysql-template.git
创建时间: 2016-11-14T11:10:33Z
项目社区:https://github.com/anychart-integrations/julia-http-mysql-template

开源协议:Apache License 2.0

下载


AnyChart - Robust JavaScript/HTML5 Chart library for any project

Julia basic template

This example shows how to use Anychart library with the Julia programming language and MySQL database.

Running

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:

  1. $ julia -v
  2. julia version 0.6.0 # sample output
  3. $ mysql --version
  4. 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:

  1. $ git clone git@github.com:anychart-integrations/julia-http-mysql-template.git

Navigate to the repository folder:

  1. $ cd julia-http-mysql-template

Set up MySQL database, use -u -p flags to provide username and password:

  1. $ mysql < database_backup.sql

Run Julia:

  1. $ julia

Install application dependencies, one after another and quit Julia:

  1. julia> Pkg.update()
  2. julia> Pkg.add("HttpServer")
  3. julia> Pkg.add("Mustache")
  4. julia> Pkg.add("MySQL")
  5. julia> Pkg.add("JSON")
  6. julia> quit()

Run application, make sure your current directory is julia-http-mysql-template so app.jl could find template file index.html:

  1. $ julia app.jl

Open browser at http://localhost:8000/

Workspace

Your workspace should look like:

  1. julia-http-mysql-template/
  2. app.jl # main Julia code
  3. database_backup.sql # MySQL database dump
  4. index.html # html template
  5. LICENSE
  6. README.md

Technologies

Language - Julia

Web server - HttpServer.jl

Html template - Mustache

Database - MySQL

Further Learning

License

AnyChart Julia/MySQL integration sample includes two parts:

  • Code of the integration sample that allows to use Javascript library (in this case, AnyChart) with Julia language and MySQL database. You can use, edit, modify it, use it with other Javascript libraries without any restrictions. It is released under Apache 2.0 License.
  • AnyChart JavaScript library. It is released under Commercial license. You can test this plugin with the trial version of AnyChart. Our trial version is not limited by time and doesn’t contain any feature limitations. Check details here.

If you have any questions regarding licensing - please contact us. sales@anychart.com

Analytics