ASCS-eV / envited-x-data-space

The ENVITED-X data space provides transparent and trustworthy access to shared data and services for innovators in mobility.
https://staging.envited-x.net/
Other
2 stars 0 forks source link
asam gaiax marketplace simulation tezos

ENVITED-X Data Space

Resources

Prerequisites

Installation

Clone the repository

git clone git@github.com:ASCS-eV/envited-x-data-space.git

Update repository

git fetch origin # get new branches
git status # check branch
git pull # update current branch

From the root directory run:

nvm ls # show installed node versions
nvm use VERSION # >= 18.20.2
node --version
npm install --legacy-peer-deps # due to dependencies

Database Connection

The local database schema may change so you have to make sure to clean up by removing existing container and images just to be sure:

docker container ls --all
docker container remove envited
docker image ls
docker image remove postgres

At first you need to create a docker container. The only thing we need is the individual connection string of a running postgres db. For example by using Docker, when running the Docker instance with the following example values:

docker run --name envited -p 5436:5432 \
-e POSTGRES_DB=envited \
-e POSTGRES_USER=admin \
-e POSTGRES_PASSWORD=123456 \
postgres

The connection string will in this case look like this:

postgres://admin:123456@localhost:5436/envited

If you have completed the setup of the docker container before you can start it and check if the envited container is running:

docker start envited
docker container ls

Setting up the environment

In apps/envited.ascs.digital rename .env.example to .env.development and fill out the required values.

Test the app

npx nx test envited.ascs.digital —watch

Start the app

To start the development server run:

npx nx serve envited.ascs.digital

Open your browser and navigate to http://localhost:4200/

Happy coding!

Smart contracts and deployment

Main: envited-x.net

The ENVITED-X Data Space is still experimental and has no main deployment yet.

trust anchor did: 'tz1YeiPapCiHfpwVcEUjMaSC3TDh9iMzkAKr'
trust anchor uuid: 'urn:uuid:0ec57c66-8b78-11ee-b9d1-0242ac120002'

contractAddress: ''

Staging: staging.envited-x.net

The staging branch is deployed on Tezos Ghostnet using the following information:

test account did: 'tz1KobLotv3nAgLJ65pyF8z1a3USbkqNeb4P'

contractAddress: 'KT1XC2fTBNqoafnrhEb7TuToRCzewgbHAhnA'