openjusticebe / upload_ui

This component is part of our service to provide a public and free repository of anonymised belgian court decisions.
https://outil.openjustice.be
GNU General Public License v3.0
2 stars 0 forks source link
court-decisions openjustice

Maintenance Generic badge

logo Openjustice.be

Openjustice.be

OpenJustice.be is a non-profit legaltech aiming to open up access to legal knowledge (court decisions, law, doctrine, ...) and instill a true digital-native culture in the world of belgian justice digitalisation.

Upload UI

This component is part of our service to provide a public and free repository of anonymised belgian court decisions.

Stack

This interface is a JAMstack Gatsby application. Accessibility, in all its forms, is as essential to us as it is -or should be- to any digital public service. React is second to none for the tools in provides natively to achieve high levels of web accessibility.

Deploy locally

After cloning the repository, the application can be run directly or through docker :

# Install gatsby if needed
> npm install -g gatsby-cli
# Install dependencies
> yarn install
# Run develop server
> gatsby develop
# After initialisation, local server is available under http://localhost:8000/
# Run using Docker
> docker build -t "ui" ./  && docker run --rm -it -p 80:80 ui 
# After initialisation, local server is available under http://localhost/

Full local environment

Using docker-compose, a full local development environment, missing only partial functionnality, can be run.

# set local env variables
> . localdev/env.sh
# run docker-compose
> docker-compose -f localdev/docker-compose.yml up
# Re-build a single container
> docker-compose -f localdev/docker-compose.yml up -d --no-deps --build tika_api