Skip to content

The ENVITED-X data space provides transparent and trustworthy access to shared data and services for innovators in mobility.

License

Notifications You must be signed in to change notification settings

ASCS-eV/envited-x-data-space

Repository files navigation

ENVITED-X Data Space

Resources

Prerequisites

Installation

Clone the repository

git clone [email protected]: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

The smart contracts and deployments can be reviewed in the https://github.com/ASCS-eV/smart-contracts/ repository.

About

The ENVITED-X data space provides transparent and trustworthy access to shared data and services for innovators in mobility.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages