Name
Last commit
Last update
.psc-package/local/.set [ps 0.15] this monstrocity is alive
ci-tests [TESTS] renaming
dist Merge remote-tracking branch 'origin/629-in-document-view-show-institute-field-of-the-document-squashed' into dev
nix [nix] upgrade to nixpkgs 23.05
prod add images symlink
specs [tests] gauge/taiko, selenium integration test samples added
src Fix compile for url share
test [ngrams] fixes to highlight (Karp-Rabin was broken)
tests [tests] gauge/taiko, selenium integration test samples added
.babelrc Add babelrc
.envrc [nix] add .envrc
.gitignore [phylo] Memiescape (second iteration)
.gitlab-ci.yml [CI] add /nix/store to cache
.yarnrc check it out
CODE_OF_CONDUCT.md [UPDATE] Code Of Conduct simpler and accepted by CNRS
CONTRIBUTING.md check it out
Dockerfile.dev [build] fix docker build
LICENSE [FIX] Licence
REACTIX.md [simple-json] lots of rewrites for Simple.JSON
README.md link to frontend readme
default.nix [visio] add simple visio component
docker-compose.yml Document docker build
docker-env.sh docker: update scripts
env.sh Document docker build
index.html [ps 0.15] this monstrocity is alive
install Loading commit data...
manifest.json Loading commit data...
metadata.json Loading commit data...
package.json Loading commit data...
packages.dhall Loading commit data...
packages.json Loading commit data...
psc-package.json Loading commit data...
repl Loading commit data...
shell.nix Loading commit data...
spago.dhall Loading commit data...
test.dhall Loading commit data...
yarn.lock Loading commit data...

 

Gargantext with Purescript (FrontEnd instance)

Purescript  Nix  NPM  Yarn  React  HTML  CSS  Bootstrap  Sass  Python  Docker

Table of Contents

  1. About the project
  2. Getting set up
  3. Develoment

About the project

GarganText is a collaborative web-decentralized-based macro-service platform for the exploration of unstructured texts. It combines tools from natural language processing, text-data-mining tricks, complex networks analysis algorithms and interactive data visualization tools to pave the way toward new kinds of interactions with your digital corpora.

This software is free software, developed and offered by the CNRS Complex Systems Institute of Paris Île-de-France (ISC-PIF) and its partners.

GarganText Project: this repo builds the frontend for the backend server built by backend.

Getting set up

Prerequisite: clone the project.

There are two approaches to working with the build:

  1. Use Nix setup (recommended)
  2. Use Docker setup

1. Use Nix setup (recommended)

First install Nix:

sh <(curl -L https://nixos.org/nix/install) --daemon

Verify the installation is complete (Note: close the current terminal session and open en new session to get nix working)

$ nix-env --version
nix-env (Nix) 2.11.0

To build the frontend just execute the install script at the root at the project:

./install

Local instance is ready! (Example: http://localhost:8000/)

2. Use Docker setup

You will need docker and docker-compose installed.

First, Source our environment file:

source ./env.sh

WARNING: you must source ./env.sh before using the docker container. If you don't do that, the container will write files as root and you'll need root powers to get ownership back!

Now build the docker image:

docker compose build frontend

That's it, skip ahead to "Development".

Development

Server

Just serve dist/index.html with any server and you are ready to be connected to any backend.

For instance you can serve it:

cd dist/ && python3 -mhttp.server

Frontend compilation

To see Purescript updates, we have to rebuild:

nix-shell --run build

To compile CSS (Sass):

nix-shell --run "yarn css"