francisl / clin-frontend

Frontend code for the CLIN project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CLIN Frontend

Available Scripts

Development Set-up

Directly On Your Machine

Install Redux Devtools Chrome Extension Install Node.js LTS 10.14.1 using nvm and run

cp -p .env.development .env
npm install -g pnpm
pnpm install
pnpm start

With Docker

Make sure you followed the instructions to have a Dockerized setup for the clin proxy api services: https://github.com/cr-ste-justine/clin-proxy-api#dockerized-version

Then, run:

cp env.docker.development .env
docker-compose -f docker-compose-docker-local.yml up -d

To stop, run:

docker-compose -f docker-compose-docker-local.yml down

Prod-like Local Setup with Docker

  • Follow the instructions for a production setup below.

  • Follow the instructions to have a running external proxy (if you don't want to launch all the services the external proxy points to, you can remove entries in its external-proxy.conf configuration file): https://github.com/cr-ste-justine/clin-external-proxy

Production Set-up

cp -p docker.env .env

Fill in any missing secret (ignore the certificate entries, they are no longer needed).

Then, type:

./apply.sh

Production Update

We are transitioning toward a gitops workflow.

The current procedure is as follows:

  • Make sure you increment the version number in package.json and get your changes merged in dev.

  • Make any orchestration modification you need to make in docker-compose.yml (including changing the image version) and get it merged in dev.

  • Update the repo dev branch on workflow and run:

./apply.sh

About

Frontend code for the CLIN project

License:GNU Affero General Public License v3.0


Languages

Language:JavaScript 81.7%Language:CSS 18.0%Language:HTML 0.2%Language:Shell 0.1%Language:Dockerfile 0.0%