Skip to main content

Install

This document explains how to start Annotto.

Table of contents

  1. Start with docker
  2. Start for local development

Start with docker

Make sure you have Docker installed.

  docker run --rm -d --name annotto -p 3000:3000 -p 8080:8080 ljnrepo/annotto:latest

Annotto will be available at http://localhost:3000 with default credentials

username (email): admin
password: test

Keycloak will be available at http://localhost:8080 with default credentials

username: admin
password: admin

Start for local development

Prerequisites

  1. Node 16+
  2. Mongo 4.4
  3. Keycloak 22.0.2
  4. PostgreSQL 13+

Launch the app

  1. Install project dependencies
yarn install
  1. Launch environment
docker-compose up -d
  1. Launch annotto
yarn start:dev

Environment variables

NameDefaultOptional-RequiredDescription
PORT5001optionalServer listening port
NODE_ENVdevelopmentoptionalNODE Environment to use "[development, test]"
ENCRYPTION_SECRET_KEY-optionalA Secret Key used to encrypt AWS creds (symmetric)
MONGO_URLmongodb://localhost:27017/ljn_annotto_devoptionalMongo connection string
ANNOTTO_FRONT_URLhttp://localhost:3000optionalAnnotto Front base url
KEYCLOAK_REALMannottooptionalKeycloak Realm (preconfigured if started with docker-compose_)
KEYCLOAK_AUTH_URLhttp://localhost:8080optionalKeycloak auth url (preconfigured if started with docker-compose_)
KEYCLOAK_CLIENT_IDannottooptionalKeycloak client id (preconfigured if started with docker-compose_)
KEYCLOAK_CLIENT_SECRETa7b7a29d-abb0-4e21-abec-bca99a47e40eoptionalKeycloak client secret (preconfigured if started with docker-compose_)
ANNOTTO_UPLOAD_MAX_FILE_SIZE1048576000optionalMax file size permitted to upload (default = 1000 1024 1024)
ANNOTTO_UPLOAD_BATCH_SIZE50000optionalMax file size permitted to upload (default = 1000 1024 1024)