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.
Prerequisite: clone the project.
There are two approaches to working with the build:
- Use Nix setup (recommended)
- Use Docker setup
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/)
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".
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
To see Purescript updates, we have to rebuild:
nix-shell --run build
To compile CSS (Sass):
nix-shell --run "yarn css"