The Node Backend is a core component of the Identity Platform, responsible for allowing organizations to register, issue and verify agent identities.
It provides a RESTful API for interaction with the Identity services.
To run the Node Backend locally, you need to have the following installed:
To start the Node locally with Docker, run the following command:
make start_nodeTo stop the Node, run:
make stop_nodeNote
This will deploy a local persistent Postgres database and a local Node backend.
The Postgres database will be available at 0.0.0.0:5432and the Node will be available at0.0.0.0:4000.
To start the Node in development mode with Docker, run the following command:
make start_node dev=trueTo stop the Node, run:
make stop_nodeNote
The dev=true flag is used to build the docker containers from the source code.
This is useful for development purposes. If you want to use the pre-built images, you can omit this flag.
This will deploy a local persistent Postgres database and a local Node backend.
The Postgres database will be available at 0.0.0.0:5432and the Node will be available at0.0.0.0:4000.
To run the Node Backend locally without Docker, you need to have the following installed:
The Node Backend uses a .env file to configure the connection to the Postgres database and other settings.
First, copy the .env.example file to .env and update the database values and any other settings as needed:
cp cmd/node/.env.example cmd/node/.envNext, to run the Node Backend locally, navigate to the cmd/node directory and run the following command:
# From the root of the repository navigate to the cmd/node directory
cd cmd/node
# Run the Node backend using Go
go run .