Unless you want to change/update the backend service, we suggest running
the planner in a docker container.
We provide a pre-build docker image on DockerHub: eifler/ipexco-backend
If you want to build your own docker image tun
docker build -t ipexco-backend .
Note Make sure that the submodule utils is initialized and updated!
The dependencies are:
npm(https://www.npmjs.com/)node.jsversion 22 (https://nodejs.org/en)
Before first run install npm packages with:
npm install
The back-end requires the following environment variables to run:
PORTthe port the web server should be listening on (default3000)BASE_URLthe URL the backend is reachable on. It is used to compose the callback URL for the services.http://localhost:3000should work for a local setup. On MacOS there might be some changes necessary since the network sharing between the host and docker containers is different from Linux.MONGOthe URL of the mongoDB database. In a local setupmongodb://localhost:27017/ipexcoshould work.JWT_KEY: a random string that is used to generate the login tokens to authenticate usersSERVICE_KEY: a random string that is used to authenticate any registered services, e.g. plannerPDDLPARSER=utils/pddl_parser/the past to the in theutilssubmodule contained PDDL parserUPLOADPATHa path to a local folder in with the uploaded images can be stored
Optional environment variables:
ALLOW_REGISTRATIONset totrueallows new users to register (defaultfalse)ALLOW_USER_STUDY_USERSset totrueallows users to participate in a user studyOPENAI_API_KEY: the API key for the OpenAI service. It is mandatory to set this variable with your own valid key if you want to use the LLM interfaces. These keys are generated from the Open AI Platform (https://platform.openai.com/api-keys).
npm start
For instruction on how to use the platform we refer to the README of the front-end repository.