Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Przemyslaw Kaminski
haskell-gargantext
Commits
82a2a9ca
Commit
82a2a9ca
authored
Mar 07, 2018
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FRON] Adding the front-end as static server.
parent
cf2346cd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
29 deletions
+45
-29
.gitignore
.gitignore
+1
-0
README.md
README.md
+41
-7
index.html
frontEnd/index.html
+0
-21
FrontEnd.hs
src/Gargantext/API/FrontEnd.hs
+1
-1
stack.yaml
stack.yaml
+2
-0
No files found.
.gitignore
View file @
82a2a9ca
.stack-work
*.swp
*.cabal
*purescript-gargantext
README.md
View file @
82a2a9ca
# 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?)
sudo apt-get install libbz2-dev lipq-dev
This software is a free software, developed by the CNRS Complex Systems
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
frontEnd/index.html
deleted
100644 → 0
View file @
cf2346cd
<
!
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>
src/Gargantext/API/FrontEnd.hs
View file @
82a2a9ca
...
...
@@ -20,6 +20,6 @@ module Gargantext.API.FrontEnd
import
Servant.Static.TH
(
createApiAndServerDecs
)
---------------------------------------------------------------------
$
(
createApiAndServerDecs
"FrontEndAPI"
"frontEndServer"
"
frontEnd
"
)
$
(
createApiAndServerDecs
"FrontEndAPI"
"frontEndServer"
"
purescript-gargantext/dist
"
)
---------------------------------------------------------------------
stack.yaml
View file @
82a2a9ca
...
...
@@ -6,6 +6,8 @@ allow-newer: true
extra-deps
:
-
git
:
https://github.com/delanoe/data-time-segment.git
commit
:
4e3d57d80e9dfe6624c8eeaa8595fc8fe64d8723
-
git
:
https://github.com/delanoe/servant-static-th.git
commit
:
fff77e79fe94d563ab5cae2609b78c17b5c1f434
-
aeson-1.2.4.0
-
aeson-lens-0.5.0.0
-
duckling-0.1.3.0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment