animo / animo-demo

Interactive demo explaining the concepts of self-sovereign identity.
https://demo.animo.id
Apache License 2.0
29 stars 42 forks source link

Unable to run the demo locally on Ubuntu 20.04 #171

Closed ashish6913 closed 1 year ago

ashish6913 commented 1 year ago

Hi,

I am trying to run the demo locally, however yarn install keeps throwing following error:

image

Current setup:

Ubuntu 20.04 Node - 16.14.0 yarn - 1.22.19

Steps to reproduce:

Any help would be appreciated. Thanks! :)

berendsliedrecht commented 1 year ago

Hi! It looks like it cannot find libindy. This is a native library required for hosting the demo.

Hopefully this guide can help you: https://aries.js.org/guides/getting-started/installation/nodejs

ashish6913 commented 1 year ago

Hi @blu3beri, you are right and thanks for your response. I was missing the libindy library but the AFJ documentation for linux didn't work out for me. However, the following Dockerfile commands solved my issue.

`RUN apt-get update -y && apt-get install -y software-properties-common apt-transport-https curl build-essential

libindy

RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88 RUN add-apt-repository "deb https://repo.sovrin.org/sdk/deb bionic stable"

nodejs

RUN curl -sL https://deb.nodesource.com/setup_16.x | bash

yarn

RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

install depdencies

RUN apt-get update -y && apt-get install -y --allow-unauthenticated \ libindy \ nodejs`