Commit 7bf419b7 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FRON] Adding the front-end as static server.

parent 3874ac47
.stack-work .stack-work
*.swp *.swp
*.cabal *.cabal
*purescript-gargantext
# Gargantext Haskell # Gargantext Haskell
## About this project
# Install Dependencies Gargantext is a collaborative web platform for the exploration of sets
of unstructured documents. It combines tools from natural language
processing, text-mining, complex networks analysis and interactive data
visualization to pave the way toward new kinds of interactions with your
digital corpora.
## On Linux Debian (and Ubuntu?) This software is a free software, developed by the CNRS Complex Systems
sudo apt-get install libbz2-dev lipq-dev Institute of Paris Île-de-France (ISC-PIF) and its partners.
## Installation
### Front-End
Front-End is written in [Purescript](http://www.purescript.org/).
Then Gargantext Front-End is developed in another git repository.
Before building the whole repo you need:
1. Get the source code:
git clone https://gitlab.iscpif.fr/gargantext/purescript-gargantext.git
2. cd purescript-gargantext
3. read the README.md to install it
## Install Stack
# Starting ### Back-End
stack ghci Back-End of Gargantext rely on several backends:
1. Haskell backend with orchestrator
2. Python backend
3. Others backends
Docker will be created to ease the backends installation.
## Haskell Backend
On Linux Debian (and Ubuntu?), install Dependencies.
sudo apt-get install libbz2-dev lipq-dev
(In the near future, we will use Nix.)
startGargantext 8008 "gargantext.ini" ### Install Stack
- https://docs.haskellstack.org/en/stable/README/
- curl -sSL https://get.haskellstack.org/ | sh
## Building and installing
stack install
## Run Gargantext
~/.local/bin/gargantext --run Mock --port 8008
<!doctype>
<html>
<head>
<meta charset="utf-8"/>
<title>CNRS GarganText</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="css/login.min.css" rel="stylesheet">
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/lavish-bootstrap.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./dist/css/menu.css"/>
<link href="css/Login.css" rel="stylesheet">
</head>
<body>
<div id="app"></div>
<script src="bundle.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="../dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/dist/lib/bootstrap/3.2.0/bootstrap.min.js"></script>
</body>
</html>
...@@ -20,6 +20,6 @@ module Gargantext.API.FrontEnd ...@@ -20,6 +20,6 @@ module Gargantext.API.FrontEnd
import Servant.Static.TH (createApiAndServerDecs) import Servant.Static.TH (createApiAndServerDecs)
--------------------------------------------------------------------- ---------------------------------------------------------------------
$(createApiAndServerDecs "FrontEndAPI" "frontEndServer" "frontEnd") $(createApiAndServerDecs "FrontEndAPI" "frontEndServer" "purescript-gargantext/dist")
--------------------------------------------------------------------- ---------------------------------------------------------------------
...@@ -6,6 +6,8 @@ allow-newer: true ...@@ -6,6 +6,8 @@ allow-newer: true
extra-deps: extra-deps:
- git: https://github.com/delanoe/data-time-segment.git - git: https://github.com/delanoe/data-time-segment.git
commit: 4e3d57d80e9dfe6624c8eeaa8595fc8fe64d8723 commit: 4e3d57d80e9dfe6624c8eeaa8595fc8fe64d8723
- git: https://github.com/delanoe/servant-static-th.git
commit: fff77e79fe94d563ab5cae2609b78c17b5c1f434
- aeson-1.2.4.0 - aeson-1.2.4.0
- aeson-lens-0.5.0.0 - aeson-lens-0.5.0.0
- duckling-0.1.3.0 - duckling-0.1.3.0
......
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