Skip to content

Commit

Permalink
Fixed another bug, verbosed startup
Browse files Browse the repository at this point in the history
  • Loading branch information
naelstrof committed Mar 15, 2016
1 parent ce0a475 commit c349fcd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ A goonchem helper that creates and displays dependency graphs of specified chemi

## Installation/How to Run

### Linux

* Requires dub package manager and dlang.

``` sh
Expand All @@ -13,3 +15,7 @@ dub
```

Browsing to localhost:8080 should open up the application. Have fun!

### Windows

Just download the pre-compiled package on the releases page above.
3 changes: 2 additions & 1 deletion source/app.d
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import vibe.d;
import chemAPI;
import std.json;
import std.stdio;

shared static this()
{
Expand All @@ -11,5 +11,6 @@ shared static this()
auto settings = new HTTPServerSettings;
settings.port = 8080;

writeln( "OMNICHEM is now running, open http://localhost:8080 in a browser!" );
listenHTTP( settings, router );
}
2 changes: 1 addition & 1 deletion source/chemAPI.d
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ class ChemAPI : IChemAPI {
html ~= `<edge hidden>"`~ top.name ~ `","` ~ str ~ `"</edge>`;
} else {
html ~= `<edge hidden>"`~ top.name ~ `","` ~ reagents[str].name ~ `"</edge>`;
html ~= generateEdges( reagents[str] );
}
html ~= generateEdges( reagents[str] );
}
return html;
}
Expand Down

0 comments on commit c349fcd

Please sign in to comment.