Commit ca5d3d60 authored by Nicolas Pouillard's avatar Nicolas Pouillard

app/Main & connectGargandb

parent 2562402a
module Main where
import Gargantext.Parser.Wos (parseWos)
import Data.Gargantext.Server (startGargantext)
main :: IO ()
main = parseWos "/tmp/DeepNeuralNetworkFull.zip"
main = startGargantext
......@@ -44,11 +44,13 @@ server conn
where
echo s = pure s
connectGargandb :: IO Connection
connectGargandb = connect infoGargandb
startGargantext :: IO ()
startGargantext = do
print ("Starting server on port " ++ show port)
conn <- connect infoGargandb
conn <- connectGargandb
run port $ app conn
where
port = 8008
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment