web service for generate svg with graphviz information
- python >= 3.4
git clone http://gogs.pierre.marjon.fr/natir/ggraph.git
pip install -r requirements.txt
For test instalation you can run :
make run PORT=[port number default 8080]
Service is provide at this adresse : http://ggraph.pierre.marijon.fr/
You can try some exemple url :
- node a to b
- node a to b png version
- [some complex graph](http://ggraph.pierre.marijon.fr/dot/svg/digraph{ fontname = "Bitstream Vera Sans"; fontsize = 8; node [fontname = "Bitstream Vera Sans";fontsize = 8;shape = "record";]; edge [fontname = "Bitstream Vera Sans";fontsize = 8;]; Sequence [label = "{Sequence|+data:string\l+comment:string\l|+gc():float}"]; Genome [label = "{Genome|+seqs:Sequence[]\l+annotation:Annotation\l}"]; Sequence -> Genome; })
The list of avaible:
For run ggraph in production you can use this configuration file.
[Unit]
Description=SVG graph generator
After=network.target
Requires=network.target
[Service]
User=youruser
Group=yourgroup
WorkingDirectory=/path/to/ggraph
Environement="PATH=/path/to/ggraph/env/bin"
ExecStart=/path/to/ggraph/env/bin/gunicorn --workers 3 -bind unix:ggraph.sock -m 007 ggraph.application:app
Restart=always
[Install]
WantedBy=multi-user.target
server
{
listen 80;
listen 443 ssl;
server_name ggraph.hostname;
location /
{
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://unix:/path/to/ggraph/ggraph.sock;
}
}
Please fork and propose pull requests.
You can report bug on github