- Node.js >= 18.20.2, Installation instructions
- Postgres DB, for example using Docker automatically downloaded later
git clone git@github.com:ASCS-eV/envited-x-data-space.gitgit fetch origin # get new branches
git status # check branch
git pull # update current branchFrom 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 dependenciesThe 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 postgresAt 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 \
postgresThe 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 lsIn apps/envited-x-data-space rename .env.example to .env.development and fill out the required values.
npx nx test envited-x-data-space —watchTo start the development server run:
npx nx serve envited-x-data-spaceOpen your browser and navigate to http://localhost:4200/
Happy coding!
The smart contracts and deployments can be reviewed in the https://github.com/ASCS-eV/smart-contracts/ repository.